-
Notifications
You must be signed in to change notification settings - Fork 49
/
Configuration.php
32 lines (27 loc) · 963 Bytes
/
Configuration.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
namespace RaulFraile\Bundle\LadybugBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* Set the configuration of the bundle.
*/
class Configuration implements ConfigurationInterface
{
/**
* {@inheritDoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('raul_fraile_ladybug');
$rootNode
->children()
->scalarNode('theme')->defaultValue('modern')->end()
->scalarNode('expanded')->defaultValue(false)->end()
->scalarNode('silenced')->defaultValue(false)->end()
->scalarNode('array_max_nesting_level')->defaultValue(9)->end()
->scalarNode('object_max_nesting_level')->defaultValue(3)->end()
->end();
return $treeBuilder;
}
}