[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

/phpbb/install/ -> updater_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\install;
  15  
  16  use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  17  use Symfony\Component\Config\Definition\ConfigurationInterface;
  18  
  19  class updater_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('updater');
  31          $rootNode
  32              ->addDefaultsIfNotSet()
  33              ->children()
  34                  ->enumNode('type')->values(['all','db_only'])->defaultValue('all')->end()
  35                  ->arrayNode('extensions')
  36                      ->prototype('scalar')->end()
  37                      ->defaultValue([])
  38                  ->end()
  39              ->end()
  40          ;
  41  
  42          return $treeBuilder;
  43      }
  44  }


Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1