@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | $projectDir = (string) $container->getParameter('kernel.project_dir'); |
| 46 | 46 | $locator = new FileLocator($projectDir); |
| 47 | 47 | $cacheDir = (string) $container->getParameter('kernel.cache_dir'); |
| 48 | - $builderGenerator =new ConfigBuilderGenerator($cacheDir); |
|
| 48 | + $builderGenerator = new ConfigBuilderGenerator($cacheDir); |
|
| 49 | 49 | $resolver = new LoaderResolver([ |
| 50 | 50 | new XmlFileLoader($container, $locator, $env), |
| 51 | 51 | new YamlFileLoader($container, $locator, $env), |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | ]); |
| 62 | 62 | $loader = new DelegatingLoader($resolver); |
| 63 | 63 | |
| 64 | - $loader->load(function (ContainerBuilder $container) use ($loader) { |
|
| 64 | + $loader->load(function(ContainerBuilder $container) use ($loader) { |
|
| 65 | 65 | /** @var Modules $modules */ |
| 66 | 66 | $modules = $container->get('doyo.modules'); |
| 67 | 67 | $configurator = $this->createConfigurator($container, $loader); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $env = $container->getParameter('kernel.environment'); |
| 82 | 82 | $paths = ['config', 'services']; |
| 83 | 83 | foreach ($paths as $path) { |
| 84 | - if (is_dir($dir=$module->getBasePath().'/Resources/'.$path)) { |
|
| 84 | + if (is_dir($dir = $module->getBasePath().'/Resources/'.$path)) { |
|
| 85 | 85 | $configurator->import($dir.'/*.yaml'); |
| 86 | 86 | $configurator->import($dir.'/*.xml'); |
| 87 | 87 | $configurator->import($dir.'/{'.$env.'}/*.yaml'); |
@@ -141,7 +141,7 @@ |
||
| 141 | 141 | return; |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | - $extensionConfig = [ |
|
| 144 | + $extensionConfig = [ |
|
| 145 | 145 | 'orm' => [ |
| 146 | 146 | 'mappings' => [ |
| 147 | 147 | $module->getName() => [ |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | private function configureValidation(ContainerBuilder $container, ModuleInterface $module): void |
| 50 | 50 | { |
| 51 | 51 | $files = []; |
| 52 | - $fileRecorder = function ($extension, $path) use (&$files): void { |
|
| 52 | + $fileRecorder = function($extension, $path) use (&$files): void { |
|
| 53 | 53 | $files['xml'][] = $path; |
| 54 | 54 | }; |
| 55 | 55 | |