This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Console/Event
Thomas Ploch acb1ae6616 [Console] Skip commands from ConsoleCommandEvent
Use case: We have different variations of the same application, for which
only certain commands are allowed. Right now this is done in a custom
Application class, but it would be much easier to just be able to skip
commands from a listener, where you can disable commands via the Event
object.

This patch provides this feature and corresponding test cases.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes - for Console tests
| Fixed tickets | None
| License       | MIT
| Doc PR        | None
2014-07-25 11:21:17 +02:00
..
ConsoleCommandEvent.php [Console] Skip commands from ConsoleCommandEvent 2014-07-25 11:21:17 +02:00
ConsoleEvent.php refactored the implementation of how a console application can handle events 2013-03-25 09:14:22 +01:00
ConsoleExceptionEvent.php Merge branch '2.3' into 2.4 2014-04-16 12:34:31 +02:00
ConsoleTerminateEvent.php Merge branch '2.3' into 2.4 2014-04-16 12:34:31 +02:00