Closed l-vo closed 3 years ago
@l-vo
https://github.com/symfony/symfony/blob/4d21ab4e7bbc1578c7f23b65f56fa605aff4fb10/src/Symfony/Component/Console/Application.php#L918
if ($event->commandShouldRun()) { ...
checks is the command has been disabled.
@a-menshchikov the answer is about the possibility to disable console events, not the possibility to disable console commands.
Oh, you are right! It seems to me as a misprint.
@a-menshchikov maybe 🙂
Yes, you're right : feel free to contribute the deck to make this answer right please 👼
Regards,
@l-vo this issue seems as outdated. Maybe it should be closed?
Fixed by #87
Are you sure for this one ? https://github.com/certificationy/symfony-pack/blob/bb5c67986573b52e574c7938c2c46fdc7c746fdc/data/command-line.yml#L147
Event dispatching seems not be deactivable: https://github.com/symfony/symfony/blob/4d21ab4e7bbc1578c7f23b65f56fa605aff4fb10/src/Symfony/Component/Console/Application.php#L916 In the code above, there is no condition checking if events are disabled.