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
minor #197 Add a better detection of the deprecation case (stof)
This PR was merged into the 2.x branch.
Discussion
----------
Add a better detection of the deprecation case
We should not trigger the deprecation when using a Symfony version not using the new feature
Commits
-------
ae3762c Add a better detection of the deprecation case
@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
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 3.0. Use AddDebugLogProcessorPass in FrameworkBundle instead.', E_USER_DEPRECATED);
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