| 1 | <?php |
||
| 5 | class Matcher |
||
| 6 | { |
||
| 7 | /** @var RouteService */ |
||
| 8 | protected $routeService; |
||
| 9 | /** @var Route */ |
||
| 10 | protected $routeNotFound; |
||
| 11 | |||
| 12 | 5 | public function __construct(RouteService $routeService) |
|
| 19 | |||
| 20 | 1 | public function setNotFoundHandler(Route $route) |
|
| 25 | |||
| 26 | 4 | public function match(CollectionRoute $routes, string $path) : \Generator |
|
| 37 | |||
| 38 | 4 | protected function matchRule(Route $route, string $pathUrl) : ?Route |
|
| 52 | } |
||
| 53 |