|
@@ 14-22 (lines=9) @@
|
| 11 |
|
{ |
| 12 |
|
use MicroKernelTrait; |
| 13 |
|
|
| 14 |
|
protected function configureContainer(ContainerConfigurator $container): void |
| 15 |
|
{ |
| 16 |
|
$container->import('../config/{packages}/*.php'); |
| 17 |
|
$container->import('../config/{packages}/'.$this->environment.'/*.php'); |
| 18 |
|
|
| 19 |
|
if (is_file($path = \dirname(__DIR__).'/config/services.php')) { |
| 20 |
|
(require $path)($container->withPath($path), $this); |
| 21 |
|
} |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
protected function configureRoutes(RoutingConfigurator $routes): void |
| 25 |
|
{ |
|
@@ 24-32 (lines=9) @@
|
| 21 |
|
} |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
protected function configureRoutes(RoutingConfigurator $routes): void |
| 25 |
|
{ |
| 26 |
|
$routes->import('../config/{routes}/'.$this->environment.'/*.php'); |
| 27 |
|
$routes->import('../config/{routes}/*.php'); |
| 28 |
|
|
| 29 |
|
if (is_file($path = \dirname(__DIR__).'/config/routes.php')) { |
| 30 |
|
(require $path)($routes->withPath($path), $this); |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
} |
| 34 |
|
|