diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-14 02:04:29 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-14 02:06:44 +0900 |
| commit | 299bf55547c92cbe8c32db2af0350ddad30b0b69 (patch) | |
| tree | 2fbd2dedc833da709d5bcf8f70bd8d56569376a3 /crates/shirabe-external-packages/src/symfony/console/console_events.rs | |
| parent | eb98b2d00e0f011b568264edfe67f86e2ac9f1df (diff) | |
| download | php-shirabe-299bf55547c92cbe8c32db2af0350ddad30b0b69.tar.gz php-shirabe-299bf55547c92cbe8c32db2af0350ddad30b0b69.tar.zst php-shirabe-299bf55547c92cbe8c32db2af0350ddad30b0b69.zip | |
refactor(console): remove unused symfony event dispatcher
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/console/console_events.rs')
| -rw-r--r-- | crates/shirabe-external-packages/src/symfony/console/console_events.rs | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/console/console_events.rs b/crates/shirabe-external-packages/src/symfony/console/console_events.rs deleted file mode 100644 index d316f8a..0000000 --- a/crates/shirabe-external-packages/src/symfony/console/console_events.rs +++ /dev/null @@ -1,46 +0,0 @@ -//! ref: composer/vendor/symfony/console/ConsoleEvents.php - -/// Contains all events dispatched by an Application. -#[derive(Debug)] -pub struct ConsoleEvents; - -impl ConsoleEvents { - /// The COMMAND event allows you to attach listeners before any command is - /// executed by the console. It also allows you to modify the command, input and output - /// before they are handed to the command. - pub const COMMAND: &'static str = "console.command"; - - /// The SIGNAL event allows you to perform some actions - /// after the command execution was interrupted. - pub const SIGNAL: &'static str = "console.signal"; - - /// The TERMINATE event allows you to attach listeners after a command is - /// executed by the console. - pub const TERMINATE: &'static str = "console.terminate"; - - /// The ERROR event occurs when an uncaught exception or error appears. - /// - /// This event allows you to deal with the exception/error or - /// to modify the thrown exception. - pub const ERROR: &'static str = "console.error"; - - /// Event aliases. These aliases can be consumed by RegisterListenersPass. - pub const ALIASES: &'static [(&'static str, &'static str)] = &[ - ( - "Symfony\\Component\\Console\\Event\\ConsoleCommandEvent", - Self::COMMAND, - ), - ( - "Symfony\\Component\\Console\\Event\\ConsoleErrorEvent", - Self::ERROR, - ), - ( - "Symfony\\Component\\Console\\Event\\ConsoleSignalEvent", - Self::SIGNAL, - ), - ( - "Symfony\\Component\\Console\\Event\\ConsoleTerminateEvent", - Self::TERMINATE, - ), - ]; -} |
