... | ... |
@@ -21,13 +21,6 @@ class VonrotenbergWmfgoCevisioExtension extends Extension |
21 | 21 |
{ |
22 | 22 |
public function load(array $configs, ContainerBuilder $container): void |
23 | 23 |
{ |
24 |
- $config = $this->processConfiguration(new Configuration(), $configs); |
|
25 |
- |
|
26 |
- foreach($config['mappings'] as $key=>$val) |
|
27 |
- { |
|
28 |
- $container->setParameter('vonrotenberg_wmfgo_cevisio.mappings.'.$key,$val); |
|
29 |
- } |
|
30 |
- |
|
31 | 24 |
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../../config')); |
32 | 25 |
$loader->load('services.yml'); |
33 | 26 |
} |
... | ... |
@@ -16,7 +16,6 @@ use Symfony\Component\Config\FileLocator; |
16 | 16 |
use Symfony\Component\DependencyInjection\ContainerBuilder; |
17 | 17 |
use Symfony\Component\DependencyInjection\Extension\Extension; |
18 | 18 |
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
19 |
-use vonRotenberg\ShopwareApiBundle\DependencyInjection\Configuration; |
|
20 | 19 |
|
21 | 20 |
class VonrotenbergWmfgoCevisioExtension extends Extension |
22 | 21 |
{ |
... | ... |
@@ -16,11 +16,19 @@ use Symfony\Component\Config\FileLocator; |
16 | 16 |
use Symfony\Component\DependencyInjection\ContainerBuilder; |
17 | 17 |
use Symfony\Component\DependencyInjection\Extension\Extension; |
18 | 18 |
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
19 |
+use vonRotenberg\ShopwareApiBundle\DependencyInjection\Configuration; |
|
19 | 20 |
|
20 | 21 |
class VonrotenbergWmfgoCevisioExtension extends Extension |
21 | 22 |
{ |
22 | 23 |
public function load(array $configs, ContainerBuilder $container): void |
23 | 24 |
{ |
25 |
+ $config = $this->processConfiguration(new Configuration(), $configs); |
|
26 |
+ |
|
27 |
+ foreach($config['mappings'] as $key=>$val) |
|
28 |
+ { |
|
29 |
+ $container->setParameter('vonrotenberg_wmfgo_cevisio.mappings.'.$key,$val); |
|
30 |
+ } |
|
31 |
+ |
|
24 | 32 |
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../../config')); |
25 | 33 |
$loader->load('services.yml'); |
26 | 34 |
} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,27 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+declare(strict_types=1); |
|
4 |
+ |
|
5 |
+/* |
|
6 |
+ * This file is part of vonRotenberg WMFGO Cevisio Bundle. |
|
7 |
+ * |
|
8 |
+ * (c) vonRotenberg |
|
9 |
+ * |
|
10 |
+ * @license proprietary |
|
11 |
+ */ |
|
12 |
+ |
|
13 |
+namespace vonRotenberg\WmfgoCevisioBundle\DependencyInjection; |
|
14 |
+ |
|
15 |
+use Symfony\Component\Config\FileLocator; |
|
16 |
+use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
17 |
+use Symfony\Component\DependencyInjection\Extension\Extension; |
|
18 |
+use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
|
19 |
+ |
|
20 |
+class VonrotenbergWmfgoCevisioExtension extends Extension |
|
21 |
+{ |
|
22 |
+ public function load(array $configs, ContainerBuilder $container): void |
|
23 |
+ { |
|
24 |
+ $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../../config')); |
|
25 |
+ $loader->load('services.yml'); |
|
26 |
+ } |
|
27 |
+} |