|
@@ -26,26 +26,26 @@ |
|
|
block discarded – undo |
|
26
|
26
|
protected function configureContainer(ContainerConfigurator $container, LoaderInterface $loader): void |
|
27
|
27
|
{ |
|
28
|
28
|
$container->import('../../../config/{packages}/*.yaml'); |
|
29
|
|
- $container->import('../../../config/{packages}/' . $this->environment . '/*.yaml'); |
|
|
29
|
+ $container->import('../../../config/{packages}/'.$this->environment.'/*.yaml'); |
|
30
|
30
|
|
|
31
|
|
- if (\is_file(\dirname(__DIR__, 3) . '/config/services.yaml')) { |
|
|
31
|
+ if (\is_file(\dirname(__DIR__, 3).'/config/services.yaml')) { |
|
32
|
32
|
$container->import('../../../config/services.yaml'); |
|
33
|
|
- $container->import('../../../config/{services}_' . $this->environment . '.yaml'); |
|
34
|
|
- } elseif (\is_file($path = \dirname(__DIR__, 3) . '/config/services.php')) { |
|
|
33
|
+ $container->import('../../../config/{services}_'.$this->environment.'.yaml'); |
|
|
34
|
+ } elseif (\is_file($path = \dirname(__DIR__, 3).'/config/services.php')) { |
|
35
|
35
|
(require $path)($container->withPath($path), $this); |
|
36
|
36
|
} |
|
37
|
37
|
|
|
38
|
|
- $loader->load($this->getProjectDir() . '/src/**/Infrastructure/Symfony/Resources/config/services.yaml', 'glob'); |
|
|
38
|
+ $loader->load($this->getProjectDir().'/src/**/Infrastructure/Symfony/Resources/config/services.yaml', 'glob'); |
|
39
|
39
|
} |
|
40
|
40
|
|
|
41
|
41
|
protected function configureRoutes(RoutingConfigurator $routes): void |
|
42
|
42
|
{ |
|
43
|
|
- $routes->import('../../../config/{routes}/' . $this->environment . '/*.yaml'); |
|
|
43
|
+ $routes->import('../../../config/{routes}/'.$this->environment.'/*.yaml'); |
|
44
|
44
|
$routes->import('../../../config/{routes}/*.yaml'); |
|
45
|
45
|
|
|
46
|
|
- if (\is_file(\dirname(__DIR__, 3) . '/config/routes.yaml')) { |
|
|
46
|
+ if (\is_file(\dirname(__DIR__, 3).'/config/routes.yaml')) { |
|
47
|
47
|
$routes->import('../../../config/routes.yaml'); |
|
48
|
|
- } elseif (\is_file($path = \dirname(__DIR__, 3) . '/config/routes.php')) { |
|
|
48
|
+ } elseif (\is_file($path = \dirname(__DIR__, 3).'/config/routes.php')) { |
|
49
|
49
|
(require $path)($routes->withPath($path), $this); |
|
50
|
50
|
} |
|
51
|
51
|
} |