Skip to content

Commit

Permalink
minor #199 Update the removal version in the deprecation message (stof)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

Update the removal version in the deprecation message

Commits
-------

86f3705 Update the removal version in the deprecation message
  • Loading branch information
stof committed Jan 2, 2017
2 parents 194df55 + 86f3705 commit b0146bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DependencyInjection/Compiler/DebugHandlerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
* @author Christophe Coevoet <stof@notk.org>
* @author Jordi Boggiano <j.boggiano@seld.be>
*
* @deprecated since version 2.12, to be removed in 3.0. Use AddDebugLogProcessorPass in FrameworkBundle instead.
* @deprecated since version 2.12, to be removed in 4.0. Use AddDebugLogProcessorPass in FrameworkBundle instead.
*/
class DebugHandlerPass implements CompilerPassInterface
{
private $channelPass;

public function __construct(LoggerChannelPass $channelPass)
{
// Trigger the deprecation only when using a Symfony version supporting the new feature
// Trigger the deprecation only when using a Symfony version supporting the new feature (i.e. 3.2+)
if (class_exists('Symfony\Bridge\Monolog\Processor\DebugProcessor') && class_exists('Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddDebugLogProcessorPass')) {
@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);
@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);
}

$this->channelPass = $channelPass;
Expand Down

0 comments on commit b0146bd

Please sign in to comment.