[ Index ]

PHP Cross Reference of phpBB-3.3.12-deutsch

title

Body

[close]

/phpbb/di/extension/ -> container_configuration.php (source)

   1  <?php
   2  /**
   3  *
   4  * This file is part of the phpBB Forum Software package.
   5  *
   6  * @copyright (c) phpBB Limited <https://www.phpbb.com>
   7  * @license GNU General Public License, version 2 (GPL-2.0)
   8  *
   9  * For full copyright and license information, please see
  10  * the docs/CREDITS.txt file.
  11  *
  12  */
  13  
  14  namespace phpbb\di\extension;
  15  
  16  use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  17  use Symfony\Component\Config\Definition\ConfigurationInterface;
  18  
  19  class container_configuration implements ConfigurationInterface
  20  {
  21  
  22      /**
  23       * Generates the configuration tree builder.
  24       *
  25       * @return TreeBuilder The tree builder
  26       */
  27  	public function getConfigTreeBuilder()
  28      {
  29          $treeBuilder = new TreeBuilder();
  30          $rootNode = $treeBuilder->root('core');
  31          $rootNode
  32              ->children()
  33                  ->booleanNode('require_dev_dependencies')->defaultValue(false)->end()
  34                  ->booleanNode('allow_install_dir')->defaultValue(false)->end()
  35                  ->arrayNode('debug')
  36                      ->addDefaultsIfNotSet()
  37                      ->children()
  38                          ->booleanNode('exceptions')->defaultValue(false)->end()
  39                          ->booleanNode('load_time')->defaultValue(false)->end()
  40                          ->booleanNode('sql_explain')->defaultValue(false)->end()
  41                          ->booleanNode('memory')->defaultValue(false)->end()
  42                          ->booleanNode('show_errors')->defaultValue(false)->end()
  43                          ->booleanNode('error_handler')->defaultValue(false)->end()
  44                      ->end()
  45                  ->end()
  46                  ->arrayNode('twig')
  47                      ->addDefaultsIfNotSet()
  48                      ->children()
  49                          ->booleanNode('debug')->defaultValue(null)->end()
  50                          ->booleanNode('auto_reload')->defaultValue(null)->end()
  51                          ->booleanNode('enable_debug_extension')->defaultValue(false)->end()
  52                      ->end()
  53                  ->end()
  54                  ->arrayNode('session')
  55                      ->addDefaultsIfNotSet()
  56                      ->children()
  57                          ->booleanNode('log_errors')->defaultValue(false)->end()
  58                      ->end()
  59                  ->end()
  60              ->end()
  61          ;
  62          return $treeBuilder;
  63      }
  64  }


Generated: Sun Jun 23 12:25:44 2024 Cross-referenced by PHPXref 0.7.1