@@ -3,7 +3,7 @@ |
||
3 | 3 | use KunicMarko\SonataAnnotationBundle\Features\Fixtures\Project\Kernel; |
4 | 4 | use Symfony\Component\HttpFoundation\Request; |
5 | 5 | |
6 | -require __DIR__.'../../../../../vendor/autoload.php'; |
|
6 | +require __DIR__ . '../../../../../vendor/autoload.php'; |
|
7 | 7 | |
8 | 8 | umask(0000); |
9 | 9 |
@@ -22,12 +22,12 @@ discard block |
||
22 | 22 | |
23 | 23 | public function getCacheDir() |
24 | 24 | { |
25 | - return $this->getProjectDir().'/var/cache/'.$this->environment; |
|
25 | + return $this->getProjectDir() . '/var/cache/' . $this->environment; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function registerBundles() |
29 | 29 | { |
30 | - $contents = require $this->getProjectDir().'/config/bundles.php'; |
|
30 | + $contents = require $this->getProjectDir() . '/config/bundles.php'; |
|
31 | 31 | foreach ($contents as $class => $envs) { |
32 | 32 | if (isset($envs['all']) || isset($envs[$this->environment])) { |
33 | 33 | yield new $class(); |
@@ -37,25 +37,25 @@ discard block |
||
37 | 37 | |
38 | 38 | protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader) |
39 | 39 | { |
40 | - $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php')); |
|
40 | + $container->addResource(new FileResource($this->getProjectDir() . '/config/bundles.php')); |
|
41 | 41 | // Feel free to remove the "container.autowiring.strict_mode" parameter |
42 | 42 | // if you are using symfony/dependency-injection 4.0+ as it's the default behavior |
43 | 43 | $container->setParameter('container.autowiring.strict_mode', true); |
44 | 44 | $container->setParameter('container.dumper.inline_class_loader', true); |
45 | - $confDir = $this->getProjectDir().'/config'; |
|
45 | + $confDir = $this->getProjectDir() . '/config'; |
|
46 | 46 | |
47 | - $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob'); |
|
48 | - $loader->load($confDir.'/{packages}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob'); |
|
49 | - $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob'); |
|
50 | - $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob'); |
|
47 | + $loader->load($confDir . '/{packages}/*' . self::CONFIG_EXTS, 'glob'); |
|
48 | + $loader->load($confDir . '/{packages}/' . $this->environment . '/**/*' . self::CONFIG_EXTS, 'glob'); |
|
49 | + $loader->load($confDir . '/{services}' . self::CONFIG_EXTS, 'glob'); |
|
50 | + $loader->load($confDir . '/{services}_' . $this->environment . self::CONFIG_EXTS, 'glob'); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | protected function configureRoutes(RouteCollectionBuilder $routes) |
54 | 54 | { |
55 | - $confDir = $this->getProjectDir().'/config'; |
|
55 | + $confDir = $this->getProjectDir() . '/config'; |
|
56 | 56 | |
57 | - $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
58 | - $routes->import($confDir.'/{routes}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
59 | - $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob'); |
|
57 | + $routes->import($confDir . '/{routes}/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
58 | + $routes->import($confDir . '/{routes}/' . $this->environment . '/**/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
59 | + $routes->import($confDir . '/{routes}' . self::CONFIG_EXTS, '/', 'glob'); |
|
60 | 60 | } |
61 | 61 | } |