8000 Remove useless code · symfony/symfony@4817130 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4817130

Browse files
committed
Remove useless code
1 parent 9c737ce commit 4817130

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/MakeFirewallsEventDispatcherTraceablePass.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@
1616
use Symfony\Component\DependencyInjection\ContainerInterface;
1717
use Symfony\Component\DependencyInjection\Reference;
1818
use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher;
19-
use Symfony\Component\Stopwatch\Stopwatch;
2019

2120
/**
2221
* @author Mathieu Lechat <mathieu.lechat@les-tilleuls.coop>
23-
*
24-
* @internal
2522
*/
2623
class MakeFirewallsEventDispatcherTraceablePass implements CompilerPassInterface
2724
{
@@ -31,7 +28,7 @@ public function process(ContainerBuilder $container)
3128
return;
3229
}
3330

34-
if (!$container->getParameter('kernel.debug') || !class_exists(Stopwatch::class) || !$container->has('debug.stopwatch')) {
31+
if (!$container->getParameter('kernel.debug') || !$container->has('debug.stopwatch')) {
3532
return;
3633
}
3734

0 commit comments

Comments
 (0)
0