Skip to content

Commit 655ca1a

Browse files
authored
Create Configuration.php
1 parent 94ec967 commit 655ca1a

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
}

0 commit comments

Comments
 (0)