1 | <?php |
||
12 | class RegexDispatcher implements Dispatcher |
||
13 | { |
||
14 | protected $routeCollector; |
||
15 | |||
16 | protected $data; |
||
17 | /** |
||
18 | * @var |
||
19 | */ |
||
20 | protected $path; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $explodedPath; |
||
26 | |||
27 | /** |
||
28 | * @var |
||
29 | */ |
||
30 | protected $httpMethod; |
||
31 | |||
32 | 3 | public function __construct(RouteCollector $routeCollector, $data = null) |
|
37 | |||
38 | /** |
||
39 | * @param $httpMethod |
||
40 | * @param $path |
||
41 | */ |
||
42 | 3 | public function dispatch($httpMethod, $path) |
|
88 | 3 | ||
89 | /** |
||
90 | 3 | * @param mixed $path |
|
91 | */ |
||
92 | public function setPath($path) |
||
98 | 3 | ||
99 | /** |
||
100 | 3 | * @param $path |
|
101 | 3 | * @return string |
|
102 | */ |
||
103 | public static function normalizePath($path) |
||
108 | |||
109 | 3 | /** |
|
110 | 3 | * @param $path |
|
111 | * @return array |
||
112 | */ |
||
113 | public static function explodePath($path) |
||
117 | } |
||
118 |