| @@ -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,17 +22,17 @@ 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 getLogDir() | 
| 29 | 29 |      { | 
| 30 | - return $this->getProjectDir().'/var/logs'; | |
| 30 | + return $this->getProjectDir() . '/var/logs'; | |
| 31 | 31 | } | 
| 32 | 32 | |
| 33 | 33 | public function registerBundles() | 
| 34 | 34 |      { | 
| 35 | - $contents = require $this->getProjectDir().'/config/bundles.php'; | |
| 35 | + $contents = require $this->getProjectDir() . '/config/bundles.php'; | |
| 36 | 36 |          foreach ($contents as $class => $envs) { | 
| 37 | 37 |              if (isset($envs['all']) || isset($envs[$this->environment])) { | 
| 38 | 38 | yield new $class(); | 
| @@ -42,19 +42,19 @@ discard block | ||
| 42 | 42 | |
| 43 | 43 | protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader) | 
| 44 | 44 |      { | 
| 45 | - $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php')); | |
| 45 | + $container->addResource(new FileResource($this->getProjectDir() . '/config/bundles.php')); | |
| 46 | 46 |          $container->setParameter('container.autowiring.strict_mode', true); | 
| 47 | 47 |          $container->setParameter('container.dumper.inline_class_loader', true); | 
| 48 | - $loader->load($this->getProjectDir().'/config/packages/*.yaml', 'glob'); | |
| 49 | - $loader->load($this->getProjectDir().'/config/services.yaml', 'glob'); | |
| 48 | + $loader->load($this->getProjectDir() . '/config/packages/*.yaml', 'glob'); | |
| 49 | + $loader->load($this->getProjectDir() . '/config/services.yaml', 'glob'); | |
| 50 | 50 | } | 
| 51 | 51 | |
| 52 | 52 | protected function configureRoutes(RouteCollectionBuilder $routes) | 
| 53 | 53 |      { | 
| 54 | - $confDir = $this->getProjectDir().'/config'; | |
| 54 | + $confDir = $this->getProjectDir() . '/config'; | |
| 55 | 55 | |
| 56 | -        $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob'); | |
| 57 | -        $routes->import($confDir.'/{routes}/test/**/*'.self::CONFIG_EXTS, '/', 'glob'); | |
| 58 | -        $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob'); | |
| 56 | +        $routes->import($confDir . '/{routes}/*' . self::CONFIG_EXTS, '/', 'glob'); | |
| 57 | +        $routes->import($confDir . '/{routes}/test/**/*' . self::CONFIG_EXTS, '/', 'glob'); | |
| 58 | +        $routes->import($confDir . '/{routes}' . self::CONFIG_EXTS, '/', 'glob'); | |
| 59 | 59 | } | 
| 60 | 60 | } |