@@ -16,17 +16,17 @@ discard block |
||
16 | 16 | |
17 | 17 | public function getCacheDir() |
18 | 18 | { |
19 | - return $this->getProjectDir() . '/var/cache/' . $this->environment; |
|
19 | + return $this->getProjectDir().'/var/cache/'.$this->environment; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | public function getLogDir() |
23 | 23 | { |
24 | - return $this->getProjectDir() . '/var/log'; |
|
24 | + return $this->getProjectDir().'/var/log'; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function registerBundles() |
28 | 28 | { |
29 | - $contents = require $this->getProjectDir() . '/config/bundles.php'; |
|
29 | + $contents = require $this->getProjectDir().'/config/bundles.php'; |
|
30 | 30 | foreach ($contents as $class => $envs) { |
31 | 31 | if (isset($envs['all']) || isset($envs[$this->environment])) { |
32 | 32 | yield new $class(); |
@@ -38,24 +38,24 @@ discard block |
||
38 | 38 | { |
39 | 39 | $container->setParameter('container.autowiring.strict_mode', true); |
40 | 40 | $container->setParameter('container.dumper.inline_class_loader', true); |
41 | - $confDir = $this->getProjectDir() . '/config'; |
|
42 | - $loader->load($confDir . '/packages/*' . self::CONFIG_EXTS, 'glob'); |
|
43 | - if (is_dir($confDir . '/packages/' . $this->environment)) { |
|
44 | - $loader->load($confDir . '/packages/' . $this->environment . '/**/*' . self::CONFIG_EXTS, 'glob'); |
|
41 | + $confDir = $this->getProjectDir().'/config'; |
|
42 | + $loader->load($confDir.'/packages/*'.self::CONFIG_EXTS, 'glob'); |
|
43 | + if (is_dir($confDir.'/packages/'.$this->environment)) { |
|
44 | + $loader->load($confDir.'/packages/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob'); |
|
45 | 45 | } |
46 | - $loader->load($confDir . '/services' . self::CONFIG_EXTS, 'glob'); |
|
47 | - $loader->load($confDir . '/services_' . $this->environment . self::CONFIG_EXTS, 'glob'); |
|
46 | + $loader->load($confDir.'/services'.self::CONFIG_EXTS, 'glob'); |
|
47 | + $loader->load($confDir.'/services_'.$this->environment.self::CONFIG_EXTS, 'glob'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | protected function configureRoutes(RouteCollectionBuilder $routes) |
51 | 51 | { |
52 | - $confDir = $this->getProjectDir() . '/config'; |
|
53 | - if (is_dir($confDir . '/routes/')) { |
|
54 | - $routes->import($confDir . '/routes/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
52 | + $confDir = $this->getProjectDir().'/config'; |
|
53 | + if (is_dir($confDir.'/routes/')) { |
|
54 | + $routes->import($confDir.'/routes/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
55 | 55 | } |
56 | - if (is_dir($confDir . '/routes/' . $this->environment)) { |
|
57 | - $routes->import($confDir . '/routes/' . $this->environment . '/**/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
56 | + if (is_dir($confDir.'/routes/'.$this->environment)) { |
|
57 | + $routes->import($confDir.'/routes/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
58 | 58 | } |
59 | - $routes->import($confDir . '/routes' . self::CONFIG_EXTS, '/', 'glob'); |
|
59 | + $routes->import($confDir.'/routes'.self::CONFIG_EXTS, '/', 'glob'); |
|
60 | 60 | } |
61 | 61 | } |