Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | protected function configureRoutes(RoutingConfigurator $routes): void |
||
28 | { |
||
29 | $routes->import('../config/{routes}/' . $this->environment . '/*.yaml'); |
||
30 | $routes->import('../config/{routes}/*.yaml'); |
||
31 | |||
32 | if (is_file(\dirname(__DIR__) . '/config/routes.yaml')) { |
||
33 | $routes->import('../config/routes.yaml'); |
||
34 | } elseif (is_file($path = \dirname(__DIR__) . '/config/routes.php')) { |
||
35 | (require $path)($routes->withPath($path), $this); |
||
36 | } |
||
37 | } |
||
38 | } |
||
39 |