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 |
-} |
... | ... |
@@ -28,9 +28,10 @@ class Configuration implements ConfigurationInterface |
28 | 28 |
->children() |
29 | 29 |
->arrayNode('properties') |
30 | 30 |
->info('Shopware property mappings') |
31 |
- ->defaultValue('') |
|
32 |
- ->arrayPrototype() |
|
33 |
- ->children() |
|
31 |
+ ->defaultValue([]) |
|
32 |
+ ->scalarPrototype() |
|
33 |
+ ->cannotBeEmpty() |
|
34 |
+ ->end() |
|
34 | 35 |
->end() |
35 | 36 |
->end() |
36 | 37 |
->end() |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,42 @@ |
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 |
+ ->arrayPrototype() |
|
33 |
+ ->children() |
|
34 |
+ ->end() |
|
35 |
+ ->end() |
|
36 |
+ ->end() |
|
37 |
+ ->end() |
|
38 |
+ ; |
|
39 |
+ |
|
40 |
+ return $treeBuilder; |
|
41 |
+ } |
|
42 |
+} |