We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
profile
1 parent 8a69f67 commit 0e0848bCopy full SHA for 0e0848b
src/Symfony/Bundle/FrameworkBundle/EventListener/ConsoleProfilerListener.php
@@ -59,7 +59,8 @@ public static function getSubscribedEvents(): array
59
60
public function initialize(ConsoleCommandEvent $event): void
61
{
62
- if (!$event->getInput()->getOption('profile')) {
+ $input = $event->getInput();
63
+ if (!$input->hasOption('profile') || !$input->getOption('profile')) {
64
$this->profiler->disable();
65
66
return;
0 commit comments