diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-22 03:56:30 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-22 03:56:30 +0900 |
| commit | c3bf6c567ba2eac2830fa6eddcf4fadf619eb17b (patch) | |
| tree | 753a13fc244b1b9fe7280176927d056c530922bc /crates/shirabe-external-packages/src/symfony/console/command/complete_command.rs | |
| parent | 1628e4b1e03c00a97fd4804d76790fa3972153aa (diff) | |
| download | php-shirabe-c3bf6c567ba2eac2830fa6eddcf4fadf619eb17b.tar.gz php-shirabe-c3bf6c567ba2eac2830fa6eddcf4fadf619eb17b.tar.zst php-shirabe-c3bf6c567ba2eac2830fa6eddcf4fadf619eb17b.zip | |
refactor(console): drop unported LazyCommand
Composer never uses Symfony's command loader, so LazyCommand is never
instantiated on any Composer execution path. Remove the stub port and
the instanceof branches that guarded against it.
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/console/command/complete_command.rs')
| -rw-r--r-- | crates/shirabe-external-packages/src/symfony/console/command/complete_command.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/console/command/complete_command.rs b/crates/shirabe-external-packages/src/symfony/console/command/complete_command.rs index c8e6b6e..1bae4ad 100644 --- a/crates/shirabe-external-packages/src/symfony/console/command/complete_command.rs +++ b/crates/shirabe-external-packages/src/symfony/console/command/complete_command.rs @@ -8,7 +8,6 @@ use std::ops::{Deref, DerefMut}; use std::rc::Rc; use crate::symfony::console::command::command::{Command, CommandData}; -use crate::symfony::console::command::lazy_command::LazyCommand; use crate::symfony::console::completion::completion_input::CompletionInput; use crate::symfony::console::completion::completion_suggestions::{ CompletionSuggestions, StringOrSuggestion, @@ -139,10 +138,8 @@ impl CompleteCommand { } } -/// \get_class($command instanceof LazyCommand ? $command->getCommand() : $command) fn get_class_of_command(command: &Rc<RefCell<dyn Command>>) -> String { - let borrowed = command.borrow(); - let _is_lazy = (*borrowed).as_any().downcast_ref::<LazyCommand>().is_some(); + // LazyCommand is intentionally not ported. // TODO: get_class() takes a PhpMixed but the command is a `dyn Command`; reflecting the // concrete class name of a trait object requires a class-name hook on Command (Phase C). todo!() |
