Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
installer_configuration.php
001 <?php
002 /**
003 *
004 * This file is part of the phpBB Forum Software package.
005 *
006 * @copyright (c) phpBB Limited <https://www.phpbb.com>
007 * @license GNU General Public License, version 2 (GPL-2.0)
008 *
009 * For full copyright and license information, please see
010 * the docs/CREDITS.txt file.
011 *
012 */
013
014 namespace phpbb\install;
015
016 use Symfony\Component\Config\Definition\Builder\TreeBuilder;
017 use Symfony\Component\Config\Definition\ConfigurationInterface;
018
019 class installer_configuration implements ConfigurationInterface
020 {
021
022 /**
023 * Generates the configuration tree builder.
024 *
025 * @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder
026 */
027 public function getConfigTreeBuilder()
028 {
029 $treeBuilder = new TreeBuilder();
030 $rootNode = $treeBuilder->root('installer');
031 $rootNode
032 ->children()
033 ->arrayNode('admin')
034 ->children()
035 ->scalarNode('name')->defaultValue('admin')->cannotBeEmpty()->end()
036 ->scalarNode('password')->defaultValue('adminadmin')->cannotBeEmpty()->end()
037 ->scalarNode('email')->defaultValue('admin@example.org')->cannotBeEmpty()->end()
038 ->end()
039 ->end()
040 ->arrayNode('board')
041 ->children()
042 ->scalarNode('lang')
043 ->defaultValue('en')
044 ->cannotBeEmpty()
045 ->end()
046 ->scalarNode('name')
047 ->defaultValue('My Board')
048 ->cannotBeEmpty()
049 ->end()
050 ->scalarNode('description')
051 ->defaultValue('My amazing new phpBB board')
052 ->cannotBeEmpty()
053 ->end()
054 ->end()
055 ->end()
056 ->arrayNode('database')
057 ->children()
058 ->scalarNode('dbms')
059 ->defaultValue('sqlite3')
060 ->cannotBeEmpty()
061 ->isRequired()
062 ->end()
063 ->scalarNode('dbhost')
064 ->defaultValue(null)
065 ->end()
066 ->scalarNode('dbport')
067 ->defaultValue(null)
068 ->end()
069 ->scalarNode('dbuser')
070 ->defaultValue(null)
071 ->end()
072 ->scalarNode('dbpasswd')
073 ->defaultValue(null)
074 ->end()
075 ->scalarNode('dbname')
076 ->defaultValue(null)
077 ->end()
078 ->scalarNode('table_prefix')
079 ->defaultValue('phpbb_')
080 ->cannotBeEmpty()
081 ->isRequired()
082 ->end()
083 ->end()
084 ->end()
085 ->arrayNode('email')
086 ->canBeEnabled()
087 ->addDefaultsIfNotSet()
088 ->children()
089 ->booleanNode('smtp_delivery')
090 ->defaultValue(false)
091 ->treatNullLike(false)
092 ->end()
093 ->scalarNode('smtp_host')
094 ->defaultValue(null)
095 ->end()
096 ->scalarNode('smtp_port')
097 ->defaultValue(null)
098 ->end()
099 ->scalarNode('smtp_auth')
100 ->defaultValue(null)
101 ->end()
102 ->scalarNode('smtp_user')
103 ->defaultValue(null)
104 ->end()
105 ->scalarNode('smtp_pass')
106 ->defaultValue(null)
107 ->end()
108 ->end()
109 ->end()
110 ->arrayNode('server')
111 ->children()
112 ->booleanNode('cookie_secure')
113 ->defaultValue(false)
114 ->treatNullLike(false)
115 ->end()
116 ->scalarNode('server_protocol')
117 ->defaultValue('http://')
118 ->cannotBeEmpty()
119 ->end()
120 ->booleanNode('force_server_vars')
121 ->defaultValue(false)
122 ->treatNullLike(false)
123 ->end()
124 ->scalarNode('server_name')
125 ->defaultValue('localhost')
126 ->cannotBeEmpty()
127 ->end()
128 ->integerNode('server_port')
129 ->defaultValue(80)
130 ->min(1)
131 ->cannotBeEmpty()
132 ->end()
133 ->scalarNode('script_path')
134 ->defaultValue('/')
135 ->cannotBeEmpty()
136 ->end()
137 ->end()
138 ->end()
139 ->arrayNode('extensions')
140 ->prototype('scalar')->end()
141 ->defaultValue([])
142 ->end()
143 ->end()
144 ;
145 return $treeBuilder;
146 }
147 }
148