Browse code

Initial commit

Benjamin Roth authored on01/06/2023 13:12:27
Showing1 changed files
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 dacore bundle for Contao.
7
+ *
8
+ * (c) Benjamin Roth
9
+ *
10
+ * @license commercial
11
+ */
12
+
13
+namespace vossmedien\DacoreBundle\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('vossmedien_dacore');
23
+        $treeBuilder
24
+            ->getRootNode()
25
+            ->children()
26
+                ->arrayNode('softgarden')
27
+                    ->addDefaultsIfNotSet()
28
+                    ->children()
29
+                        ->scalarNode('client_id')
30
+                            ->info('Your Softgarden client ID.')
31
+                        ->end()
32
+                        ->scalarNode('api_domain')
33
+                            ->info('Your Softgarden API domain.')
34
+                        ->end()
35
+                    ->end()
36
+                ->end()
37
+            ->end()
38
+        ;
39
+
40
+        return $treeBuilder;
41
+    }
42
+}