You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 2.x:
Update the removal version in the deprecation message
Add a better detection of the deprecation case
revert disabling DebugHandler in CLI environments
@trigger_error('The '.__NAMESPACE__.'\DebugHandlerPass class is deprecated since version 2.12 and will be removed in 3.0. Use AddDebugLogProcessorPass in FrameworkBundle instead.', E_USER_DEPRECATED);
// Trigger the deprecation only when using a Symfony version supporting the new feature (i.e. 3.2+)
36
+
if (class_exists('Symfony\Bridge\Monolog\Processor\DebugProcessor') && class_exists('Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddDebugLogProcessorPass')) {
37
+
@trigger_error('The '.__CLASS__.' class is deprecated since version 2.12 and will be removed in 4.0. Use AddDebugLogProcessorPass in FrameworkBundle instead.', E_USER_DEPRECATED);
38
+
}
39
+
36
40
$this->channelPass = $channelPass;
37
41
}
38
42
@@ -46,11 +50,6 @@ public function process(ContainerBuilder $container)
46
50
return;
47
51
}
48
52
49
-
// disable the DebugHandler in CLI as it tends to leak memory if people enable kernel.debug
if (!class_exists('Symfony\Bridge\Monolog\Processor\DebugProcessor')) {
37
+
if (!class_exists('Symfony\Bridge\Monolog\Processor\DebugProcessor') || !class_exists('Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddDebugLogProcessorPass')) {
0 commit comments