Skip to content

Commit

Permalink
use ::class pseudo-constant
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Nov 6, 2017
1 parent 513a5e4 commit 7a4d77f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DependencyInjection/Compiler/TagListenerPass.php
Expand Up @@ -11,6 +11,7 @@

namespace FOS\HttpCacheBundle\DependencyInjection\Compiler;

use Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;

Expand All @@ -37,6 +38,6 @@ public function process(ContainerBuilder $container)
private function hasControllerListener(ContainerBuilder $container)
{
return $container->has('sensio_framework_extra.controller.listener') ||
$container->has('Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\ControllerListener');
$container->has(ControllerListener::class);
}
}

0 comments on commit 7a4d77f

Please sign in to comment.