vendor/symfony/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php
changeset 0 7f95f8617b0b
equal deleted inserted replaced
-1:000000000000 0:7f95f8617b0b
       
     1 <?php
       
     2 
       
     3 /*
       
     4  * This file is part of the Symfony package.
       
     5  *
       
     6  * (c) Fabien Potencier <fabien@symfony.com>
       
     7  *
       
     8  * For the full copyright and license information, please view the LICENSE
       
     9  * file that was distributed with this source code.
       
    10  */
       
    11 
       
    12 namespace Symfony\Bundle\WebProfilerBundle\DependencyInjection;
       
    13 
       
    14 use Symfony\Component\Config\Definition\Builder\TreeBuilder;
       
    15 use Symfony\Component\Config\Definition\ConfigurationInterface;
       
    16 
       
    17 /**
       
    18  * This class contains the configuration information for the bundle
       
    19  *
       
    20  * This information is solely responsible for how the different configuration
       
    21  * sections are normalized, and merged.
       
    22  *
       
    23  * @author Fabien Potencier <fabien@symfony.com>
       
    24  */
       
    25 class Configuration implements ConfigurationInterface
       
    26 {
       
    27     /**
       
    28      * Generates the configuration tree builder.
       
    29      *
       
    30      * @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder
       
    31      */
       
    32     public function getConfigTreeBuilder()
       
    33     {
       
    34         $treeBuilder = new TreeBuilder();
       
    35         $rootNode = $treeBuilder->root('web_profiler');
       
    36 
       
    37         $rootNode
       
    38             ->children()
       
    39                 ->booleanNode('verbose')->defaultTrue()->end()
       
    40                 ->booleanNode('toolbar')->defaultFalse()->end()
       
    41                 ->booleanNode('intercept_redirects')->defaultFalse()->end()
       
    42             ->end()
       
    43         ;
       
    44 
       
    45         return $treeBuilder;
       
    46     }
       
    47 }