@@ -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/test'; |
|
| 25 | + return $this->getProjectDir() . '/var/cache/test'; |
|
| 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,19 +37,19 @@ 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 | $container->setParameter('container.autowiring.strict_mode', true); |
| 42 | 42 | $container->setParameter('container.dumper.inline_class_loader', true); |
| 43 | - $loader->load($this->getProjectDir().'/config/packages/*.yaml', 'glob'); |
|
| 44 | - $loader->load($this->getProjectDir().'/config/services.yaml', 'glob'); |
|
| 43 | + $loader->load($this->getProjectDir() . '/config/packages/*.yaml', 'glob'); |
|
| 44 | + $loader->load($this->getProjectDir() . '/config/services.yaml', 'glob'); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | protected function configureRoutes(RouteCollectionBuilder $routes) |
| 48 | 48 | { |
| 49 | - $confDir = $this->getProjectDir().'/config'; |
|
| 49 | + $confDir = $this->getProjectDir() . '/config'; |
|
| 50 | 50 | |
| 51 | - $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
| 52 | - $routes->import($confDir.'/{routes}/test/**/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
| 53 | - $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob'); |
|
| 51 | + $routes->import($confDir . '/{routes}/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
| 52 | + $routes->import($confDir . '/{routes}/test/**/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
| 53 | + $routes->import($confDir . '/{routes}' . self::CONFIG_EXTS, '/', 'glob'); |
|
| 54 | 54 | } |
| 55 | 55 | } |