Add DispatchProviderInterface
This commit is contained in:
parent
ec091b34c4
commit
94d6cc23b2
|
|
@ -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);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue