@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function getCacheDir(): string |
27 | 27 | { |
28 | - return $this->getProjectDir() . '/var/cache/' . $this->environment; |
|
28 | + return $this->getProjectDir().'/var/cache/'.$this->environment; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function getLogDir(): string |
35 | 35 | { |
36 | - return $this->getProjectDir() . '/var/log'; |
|
36 | + return $this->getProjectDir().'/var/log'; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function registerBundles() |
43 | 43 | { |
44 | - $contents = require $this->getProjectDir() . '/config/bundles.php'; |
|
44 | + $contents = require $this->getProjectDir().'/config/bundles.php'; |
|
45 | 45 | |
46 | 46 | foreach ($contents as $class => $envs) { |
47 | 47 | if (isset($envs['all']) || isset($envs[$this->environment])) { |
@@ -55,14 +55,14 @@ discard block |
||
55 | 55 | */ |
56 | 56 | protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void |
57 | 57 | { |
58 | - $container->addResource(new FileResource($this->getProjectDir() . '/config/bundles.php')); |
|
58 | + $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php')); |
|
59 | 59 | $container->setParameter('container.dumper.inline_class_loader', true); |
60 | 60 | |
61 | - $confDir = $this->getProjectDir() . '/config'; |
|
62 | - $loader->load($confDir . '/{packages}/*' . self::CONFIG_EXTS, 'glob'); |
|
63 | - $loader->load($confDir . '/{packages}/' . $this->environment . '/**/*' . self::CONFIG_EXTS, 'glob'); |
|
64 | - $loader->load($confDir . '/{services}' . self::CONFIG_EXTS, 'glob'); |
|
65 | - $loader->load($confDir . '/{services}_' . $this->environment . self::CONFIG_EXTS, 'glob'); |
|
61 | + $confDir = $this->getProjectDir().'/config'; |
|
62 | + $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob'); |
|
63 | + $loader->load($confDir.'/{packages}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob'); |
|
64 | + $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob'); |
|
65 | + $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob'); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -70,9 +70,9 @@ discard block |
||
70 | 70 | */ |
71 | 71 | protected function configureRoutes(RouteCollectionBuilder $routes): void |
72 | 72 | { |
73 | - $confDir = $this->getProjectDir() . '/config'; |
|
74 | - $routes->import($confDir . '/{routes}/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
75 | - $routes->import($confDir . '/{routes}/' . $this->environment . '/**/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
76 | - $routes->import($confDir . '/{routes}' . self::CONFIG_EXTS, '/', 'glob'); |
|
73 | + $confDir = $this->getProjectDir().'/config'; |
|
74 | + $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
75 | + $routes->import($confDir.'/{routes}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
76 | + $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob'); |
|
77 | 77 | } |
78 | 78 | } |