1 | <?php |
||
16 | class Dispatcher extends GroupCountBasedDispatcher implements StrategyAwareInterface |
||
17 | { |
||
18 | use StrategyAwareTrait; |
||
19 | |||
20 | /** |
||
21 | * Match and dispatch a route matching the given http method and |
||
22 | * uri, retruning an execution chain. |
||
23 | * |
||
24 | * @param \Psr\Http\Message\ServerRequestInterface $request |
||
25 | * |
||
26 | * @return \League\Route\Middleware\ExecutionChain |
||
27 | */ |
||
28 | public function handle(ServerRequestInterface $request) |
||
46 | |||
47 | /** |
||
48 | * Handle dispatching of a found route. |
||
49 | * |
||
50 | * @param callable $route |
||
51 | * @param array $vars |
||
52 | * |
||
53 | * @return \League\Route\Middleware\ExecutionChain |
||
54 | */ |
||
55 | protected function handleFound(callable $route, array $vars) |
||
59 | |||
60 | /** |
||
61 | * Handle a not found route. |
||
62 | * |
||
63 | * @return \League\Route\Middleware\ExecutionChain |
||
64 | */ |
||
65 | protected function handleNotFound() |
||
79 | |||
80 | /** |
||
81 | * Handles a not allowed route. |
||
82 | * |
||
83 | * @param array $allowed |
||
84 | * |
||
85 | * @return \League\Route\Middleware\ExecutionChain |
||
86 | */ |
||
87 | protected function handleNotAllowed(array $allowed) |
||
101 | } |
||
102 |