1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,43 +0,0 @@ |
1 |
-<?php |
|
2 |
- |
|
3 |
-declare(strict_types=1); |
|
4 |
- |
|
5 |
-/* |
|
6 |
- * This file is part of vonRotenberg Shopware API Bundle. |
|
7 |
- * |
|
8 |
- * (c) vonRotenberg |
|
9 |
- * |
|
10 |
- * @license proprietary |
|
11 |
- */ |
|
12 |
- |
|
13 |
-namespace vonRotenberg\WmfgoCevisioBundle\DependencyInjection; |
|
14 |
- |
|
15 |
-use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
|
16 |
-use Symfony\Component\Config\Definition\ConfigurationInterface; |
|
17 |
- |
|
18 |
-class Configuration implements ConfigurationInterface |
|
19 |
-{ |
|
20 |
- public function getConfigTreeBuilder(): TreeBuilder |
|
21 |
- { |
|
22 |
- $treeBuilder = new TreeBuilder('vonrotenberg_wmfgo_cevisio'); |
|
23 |
- $treeBuilder |
|
24 |
- ->getRootNode() |
|
25 |
- ->children() |
|
26 |
- ->arrayNode('mappings') |
|
27 |
- ->addDefaultsIfNotSet() |
|
28 |
- ->children() |
|
29 |
- ->arrayNode('properties') |
|
30 |
- ->info('Shopware property mappings') |
|
31 |
- ->defaultValue([]) |
|
32 |
- ->scalarPrototype() |
|
33 |
- ->cannotBeEmpty() |
|
34 |
- ->end() |
|
35 |
- ->end() |
|
36 |
- ->end() |
|
37 |
- ->end() |
|
38 |
- ->end() |
|
39 |
- ; |
|
40 |
- |
|
41 |
- return $treeBuilder; |
|
42 |
- } |
|
43 |
-} |
... | ... |
@@ -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 |
} |