@@ -31,21 +31,21 @@ discard block |
||
| 31 | 31 | /** |
| 32 | 32 | * {@inheritDoc} |
| 33 | 33 | */ |
| 34 | - public function load( array $configs, ContainerBuilder $container ) |
|
| 34 | + public function load(array $configs, ContainerBuilder $container) |
|
| 35 | 35 | { |
| 36 | 36 | $configuration = new Configuration(); |
| 37 | - $config = $this->processConfiguration( $configuration, $configs ); |
|
| 37 | + $config = $this->processConfiguration($configuration, $configs); |
|
| 38 | 38 | |
| 39 | - foreach( $configs as $list ) { |
|
| 40 | - $config = array_replace_recursive( $config, $list ); |
|
| 39 | + foreach ($configs as $list) { |
|
| 40 | + $config = array_replace_recursive($config, $list); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - foreach( $config as $key => $value ) { |
|
| 44 | - $container->setParameter( 'aimeos_shop.' . $key, $value ); |
|
| 43 | + foreach ($config as $key => $value) { |
|
| 44 | + $container->setParameter('aimeos_shop.'.$key, $value); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - $loader = new Loader\YamlFileLoader( $container, new FileLocator( dirname( __DIR__ ) . '/Resources/config' ) ); |
|
| 48 | - $loader->load( 'services.yml' ); |
|
| 47 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(dirname(__DIR__).'/Resources/config')); |
|
| 48 | + $loader->load('services.yml'); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | |
@@ -54,12 +54,12 @@ discard block |
||
| 54 | 54 | * |
| 55 | 55 | * @param ContainerBuilder $container ContainerBuilder object |
| 56 | 56 | */ |
| 57 | - public function prepend( ContainerBuilder $container ) |
|
| 57 | + public function prepend(ContainerBuilder $container) |
|
| 58 | 58 | { |
| 59 | - $configFile = dirname( __DIR__ ) . '/Resources/config/aimeos_shop.yml'; |
|
| 60 | - $config = Yaml::parse( file_get_contents( $configFile ) ); |
|
| 59 | + $configFile = dirname(__DIR__).'/Resources/config/aimeos_shop.yml'; |
|
| 60 | + $config = Yaml::parse(file_get_contents($configFile)); |
|
| 61 | 61 | |
| 62 | - $container->prependExtensionConfig( 'aimeos_shop', $config ); |
|
| 63 | - $container->addResource( new FileResource( $configFile ) ); |
|
| 62 | + $container->prependExtensionConfig('aimeos_shop', $config); |
|
| 63 | + $container->addResource(new FileResource($configFile)); |
|
| 64 | 64 | } |
| 65 | 65 | } |