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