mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-21 23:13:43 +02:00
Merge pull request #6319 from marc1706/ticket/16898-master
[ticket/16898] Do not restrict the debug error handler to the dev env -- master version
This commit is contained in:
commit
b80395f1b9
@ -95,6 +95,8 @@ include($phpbb_root_path . 'includes/functions_compatibility.' . $phpEx);
|
|||||||
require($phpbb_root_path . 'includes/constants.' . $phpEx);
|
require($phpbb_root_path . 'includes/constants.' . $phpEx);
|
||||||
require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
|
require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
|
||||||
|
|
||||||
|
// Registered before building the container so the development environment stay capable of intercepting
|
||||||
|
// the container builder exceptions.
|
||||||
if (PHPBB_ENVIRONMENT === 'development')
|
if (PHPBB_ENVIRONMENT === 'development')
|
||||||
{
|
{
|
||||||
\phpbb\debug\debug::enable();
|
\phpbb\debug\debug::enable();
|
||||||
@ -128,6 +130,11 @@ catch (InvalidArgumentException $e)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($phpbb_container->getParameter('debug.error_handler'))
|
||||||
|
{
|
||||||
|
\phpbb\debug\debug::enable();
|
||||||
|
}
|
||||||
|
|
||||||
$phpbb_class_loader->set_cache($phpbb_container->get('cache.driver'));
|
$phpbb_class_loader->set_cache($phpbb_container->get('cache.driver'));
|
||||||
$phpbb_class_loader_ext->set_cache($phpbb_container->get('cache.driver'));
|
$phpbb_class_loader_ext->set_cache($phpbb_container->get('cache.driver'));
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ core:
|
|||||||
show_errors: true
|
show_errors: true
|
||||||
url_generator: true
|
url_generator: true
|
||||||
url_matcher: true
|
url_matcher: true
|
||||||
|
error_handler: true
|
||||||
|
|
||||||
twig:
|
twig:
|
||||||
debug: true
|
debug: true
|
||||||
|
@ -42,6 +42,7 @@ class container_configuration implements ConfigurationInterface
|
|||||||
->booleanNode('show_errors')->defaultValue(false)->end()
|
->booleanNode('show_errors')->defaultValue(false)->end()
|
||||||
->booleanNode('url_generator')->defaultValue(false)->end()
|
->booleanNode('url_generator')->defaultValue(false)->end()
|
||||||
->booleanNode('url_matcher')->defaultValue(false)->end()
|
->booleanNode('url_matcher')->defaultValue(false)->end()
|
||||||
|
->booleanNode('error_handler')->defaultValue(false)->end()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->arrayNode('twig')
|
->arrayNode('twig')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user