@@ -31,6 +31,6 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function load(ObjectManager $manager): void |
| 33 | 33 | { |
| 34 | - $this->loader->load([__DIR__ . '/../../fixtures/data.yaml']); |
|
| 34 | + $this->loader->load([__DIR__.'/../../fixtures/data.yaml']); |
|
| 35 | 35 | } |
| 36 | 36 | } |
@@ -19,17 +19,17 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | public function getCacheDir() |
| 21 | 21 | { |
| 22 | - return $this->getProjectDir() . '/var/cache/' . $this->environment; |
|
| 22 | + return $this->getProjectDir().'/var/cache/'.$this->environment; |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | public function getLogDir() |
| 26 | 26 | { |
| 27 | - return $this->getProjectDir() . '/var/log'; |
|
| 27 | + return $this->getProjectDir().'/var/log'; |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | public function registerBundles() |
| 31 | 31 | { |
| 32 | - $contents = require $this->getProjectDir() . '/config/bundles.php'; |
|
| 32 | + $contents = require $this->getProjectDir().'/config/bundles.php'; |
|
| 33 | 33 | foreach ($contents as $class => $envs) { |
| 34 | 34 | if (isset($envs['all']) || isset($envs[$this->environment])) { |
| 35 | 35 | yield new $class(); |
@@ -39,25 +39,25 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void |
| 41 | 41 | { |
| 42 | - $container->addResource(new FileResource($this->getProjectDir() . '/config/bundles.php')); |
|
| 42 | + $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php')); |
|
| 43 | 43 | // Feel free to remove the "container.autowiring.strict_mode" parameter |
| 44 | 44 | // if you are using symfony/dependency-injection 4.0+ as it's the default behavior |
| 45 | 45 | $container->setParameter('container.autowiring.strict_mode', true); |
| 46 | 46 | $container->setParameter('container.dumper.inline_class_loader', true); |
| 47 | - $confDir = $this->getProjectDir() . '/config'; |
|
| 47 | + $confDir = $this->getProjectDir().'/config'; |
|
| 48 | 48 | |
| 49 | - $loader->load($confDir . '/{packages}/*' . self::CONFIG_EXTS, 'glob'); |
|
| 50 | - $loader->load($confDir . '/{packages}/' . $this->environment . '/**/*' . self::CONFIG_EXTS, 'glob'); |
|
| 51 | - $loader->load($confDir . '/{services}' . self::CONFIG_EXTS, 'glob'); |
|
| 52 | - $loader->load($confDir . '/{services}_' . $this->environment . self::CONFIG_EXTS, 'glob'); |
|
| 49 | + $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob'); |
|
| 50 | + $loader->load($confDir.'/{packages}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob'); |
|
| 51 | + $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob'); |
|
| 52 | + $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob'); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | protected function configureRoutes(RouteCollectionBuilder $routes): void |
| 56 | 56 | { |
| 57 | - $confDir = $this->getProjectDir() . '/config'; |
|
| 57 | + $confDir = $this->getProjectDir().'/config'; |
|
| 58 | 58 | |
| 59 | - $routes->import($confDir . '/{routes}/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
| 60 | - $routes->import($confDir . '/{routes}/' . $this->environment . '/**/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
| 61 | - $routes->import($confDir . '/{routes}' . self::CONFIG_EXTS, '/', 'glob'); |
|
| 59 | + $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
| 60 | + $routes->import($confDir.'/{routes}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
| 61 | + $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob'); |
|
| 62 | 62 | } |
| 63 | 63 | } |