1 | <?php |
||
14 | class DispatchHandler |
||
15 | { |
||
16 | /** |
||
17 | * @var Directory |
||
18 | */ |
||
19 | private $directory; |
||
20 | |||
21 | /** |
||
22 | * @param Directory $directory |
||
23 | */ |
||
24 | 4 | public function __construct(Directory $directory) |
|
28 | |||
29 | /** |
||
30 | * @inheritDoc |
||
31 | */ |
||
32 | 4 | public function __invoke( |
|
54 | |||
55 | /** |
||
56 | * @return Dispatcher |
||
57 | */ |
||
58 | protected function dispatcher() |
||
72 | |||
73 | /** |
||
74 | * @throws HttpNotFound |
||
75 | * @throws HttpMethodNotAllowed |
||
76 | * |
||
77 | * @param Dispatcher $dispatcher |
||
78 | * @param string $method |
||
79 | * @param string $path |
||
80 | * |
||
81 | * @return array [Action, $arguments] |
||
82 | */ |
||
83 | 4 | private function dispatch(Dispatcher $dispatcher, $method, $path) |
|
99 | } |
||
100 |