Add DispatchProviderInterface

This commit is contained in:
PJ Dietz 2015-05-10 11:31:19 -04:00
parent ec091b34c4
commit 94d6cc23b2
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<?php
namespace WellRESTed\Dispatching;
interface DispatchProvider
{
/**
* @return DispatcherInterface
*/
public function getDispatcher();
/**
* Return a DispatchStackInterface for a list array of middleware.
*
* @param mixed[] $middlewares
* @return DispatchStackInterface
*/
public function getDispatchStack($middlewares);
}