File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ /*
3+ * (c) Api Postcode <info@api-postcode.nl>
4+ *
5+ * For the full copyright and license information, please view the LICENSE
6+ * file that was distributed with this source code.
7+ */
8+
9+ namespace ApiPostcode \PostcodeBundle \DependencyInjection ;
10+
11+ use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
12+ use Symfony \Component \Config \Definition \ConfigurationInterface ;
13+
14+ /**
15+ * Class Configuration
16+ *
17+ * (c) Api Postcode <info@api-postcode.nl>
18+ */
19+ class Configuration implements ConfigurationInterface
20+ {
21+ /**
22+ * {@inheritdoc}
23+ */
24+ public function getConfigTreeBuilder ()
25+ {
26+ $ treeBuilder = new TreeBuilder ();
27+ $ rootNode = $ treeBuilder ->root ('api_postcode_postcode ' );
28+
29+ $ rootNode ->children ()
30+ ->arrayNode ('api_postcode ' )->isRequired ()->children ()
31+ ->scalarNode ('token ' )->isRequired ()->end ()
32+ ->end ()
33+ ->end ();
34+
35+ return $ treeBuilder ;
36+ }
37+ }
You can’t perform that action at this time.
0 commit comments