Skip to content

Commit

Permalink
bug #52434 [Console][FrameworkBundle] Fix missing profile option fo…
Browse files Browse the repository at this point in the history
…r console commands (keulinho)

This PR was merged into the 6.4 branch.

Discussion
----------

[Console][FrameworkBundle] Fix missing `profile` option for console commands

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Issues        | Fix #52433
| License       | MIT

Commits
-------

0e0848b Fix missing `profile` option for console commands
  • Loading branch information
chalasr committed Nov 7, 2023
2 parents 003843d + 0e0848b commit d308e2c
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -59,7 +59,8 @@ public static function getSubscribedEvents(): array

public function initialize(ConsoleCommandEvent $event): void
{
if (!$event->getInput()->getOption('profile')) {
$input = $event->getInput();
if (!$input->hasOption('profile') || !$input->getOption('profile')) {
$this->profiler->disable();

return;
Expand Down

0 comments on commit d308e2c

Please sign in to comment.