- <?php
-
- namespace Lc\SovBundle\DependencyInjection;
-
- use Symfony\Component\Config\Definition\Builder\TreeBuilder;
- use Symfony\Component\Config\Definition\ConfigurationInterface;
-
-
- class Configuration implements ConfigurationInterface
- {
-
-
- public function getConfigTreeBuilder()
- {
- $treeBuilder = new TreeBuilder('lc_sov');
- $rootNode = $treeBuilder->getRootNode();
-
- $rootNode
- ->children()
-
- ->scalarNode('homepage_route')->end()
- ->arrayNode('login_redirection')
- ->children()
- ->scalarNode('redirect_referer')
- ->defaultValue(true)
- ->end()
- ->arrayNode('roles_redirection')
- ->arrayPrototype()
- ->children()
- ->scalarNode('role')->end()
- ->scalarNode('redirect')->end()
- ->end()
- ->end()
- ->end()
- ->end()
- ->end();
-
-
- return $treeBuilder;
- }
- }
|