No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

Configuration.php 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace Lc\SovBundle\DependencyInjection;
  3. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  4. use Symfony\Component\Config\Definition\ConfigurationInterface;
  5. /**
  6. * This is the class that validates and merges configuration from your app/config files
  7. *
  8. * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
  9. */
  10. class Configuration implements ConfigurationInterface
  11. {
  12. /**
  13. * {@inheritdoc}
  14. */
  15. public function getConfigTreeBuilder()
  16. {
  17. $treeBuilder = new TreeBuilder('lc_sov');
  18. $rootNode = $treeBuilder->getRootNode();
  19. $rootNode
  20. ->children()
  21. //->scalarNode('dashboard_default')->defaultValue('App\Controller\Admin\DashboardController')->end()
  22. ->scalarNode('homepage_route')->end()
  23. ->scalarNode('email_notification')->end()
  24. ->scalarNode('email_notification_name')->end()
  25. ->arrayNode('login_redirection')
  26. ->children()
  27. ->scalarNode('redirect_referer')
  28. ->defaultValue(true)
  29. ->end()
  30. ->arrayNode('roles_redirection')
  31. ->arrayPrototype()
  32. ->children()
  33. ->scalarNode('role')->end()
  34. ->scalarNode('redirect')->end()
  35. ->end()
  36. ->end()
  37. ->end()
  38. ->end()
  39. ->end();
  40. return $treeBuilder;
  41. }
  42. }