diff options
author | Rubén Calvo <rubencm@gmail.com> | 2018-09-01 01:16:57 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-09 19:04:01 +0200 |
commit | 303b823847d23edf381203bddb7af58a3ad68173 (patch) | |
tree | bf50c0e226af80dee8f8f91bdb602dabc8c4d3c3 /phpBB/phpbb/di | |
parent | 4f402465bf41c88876a499cacfc6bdc1762dfe44 (diff) | |
download | forums-303b823847d23edf381203bddb7af58a3ad68173.tar forums-303b823847d23edf381203bddb7af58a3ad68173.tar.gz forums-303b823847d23edf381203bddb7af58a3ad68173.tar.bz2 forums-303b823847d23edf381203bddb7af58a3ad68173.tar.xz forums-303b823847d23edf381203bddb7af58a3ad68173.zip |
[ticket/12636] Add log.session_errors
PHPBB3-12636
Diffstat (limited to 'phpBB/phpbb/di')
-rw-r--r-- | phpBB/phpbb/di/extension/container_configuration.php | 6 | ||||
-rw-r--r-- | phpBB/phpbb/di/extension/core.php | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/phpbb/di/extension/container_configuration.php b/phpBB/phpbb/di/extension/container_configuration.php index c64f47c716..25e0f8a193 100644 --- a/phpBB/phpbb/di/extension/container_configuration.php +++ b/phpBB/phpbb/di/extension/container_configuration.php @@ -49,6 +49,12 @@ class container_configuration implements ConfigurationInterface ->booleanNode('enable_debug_extension')->defaultValue(false)->end() ->end() ->end() + ->arrayNode('log') + ->addDefaultsIfNotSet() + ->children() + ->booleanNode('session_errors')->defaultValue(false)->end() + ->end() + ->end() ->end() ; return $treeBuilder; diff --git a/phpBB/phpbb/di/extension/core.php b/phpBB/phpbb/di/extension/core.php index 7b5a286b40..213e3a5890 100644 --- a/phpBB/phpbb/di/extension/core.php +++ b/phpBB/phpbb/di/extension/core.php @@ -99,6 +99,12 @@ class core extends Extension { $container->setParameter('debug.' . $name, $value); } + + // Set the log options + foreach ($config['log'] as $name => $value) + { + $container->setParameter('log.' . $name, $value); + } } /** |