vendor/rawafed/routing-bundle/DependencyInjection/Configuration.php line 22

Open in your IDE?
  1. <?php
  2. namespace Rawafed\RoutingBundle\DependencyInjection;
  3. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  4. use Symfony\Component\Config\Definition\ConfigurationInterface;
  5. use SoftDeleteable\Fixture\Entity\Child;
  6. /**
  7.  * This is the class that validates and merges configuration from your app/config files
  8.  *
  9.  * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
  10.  */
  11. class Configuration implements ConfigurationInterface
  12. {
  13.     /**
  14.      * {@inheritDoc}
  15.      */
  16.     public function getConfigTreeBuilder()
  17.     {
  18.         $treeBuilder = new TreeBuilder();
  19.         $rootNode $treeBuilder->root('rawafed_routing');
  20.         
  21.         $rootNode
  22.             ->children()
  23.                 ->scalarNode('cmsbundlestagname')
  24.                     ->defaultValue('rwfdcms.bundle')
  25.                     ->cannotBeEmpty()
  26.                 ->end()
  27.                 
  28.                 ->scalarNode('secured_prefix')
  29.                     ->defaultValue('/admin')
  30.                     ->cannotBeEmpty()
  31.                 ->end()
  32.                 
  33.                 ->arrayNode('languages')
  34.                     ->children()
  35.                         ->booleanNode('enable')
  36.                             ->defaultValue(false)
  37.                         ->end()
  38.                         /*
  39.                         ->arrayNode('langs')
  40.                             ->isRequired()
  41.                             ->requiresAtLeastOneElement()
  42.                             ->prototype('scalar')
  43.                             ->end()
  44.                         ->end()
  45.                         
  46.                         ->scalarNode('default')
  47.                             ->isRequired()
  48.                             ->cannotBeEmpty()
  49.                         ->end()
  50.                                          * 
  51.                                          */
  52.                     ->end()        
  53.                 ->end()
  54.             ->end();
  55.         // Here you should define the parameters that are allowed to
  56.         // configure your bundle. See the documentation linked above for
  57.         // more information on that topic.
  58.         return $treeBuilder;
  59.     }
  60. }