aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/console/command/complete_command.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-22 03:56:30 +0900
committernsfisis <nsfisis@gmail.com>2026-06-22 03:56:30 +0900
commitc3bf6c567ba2eac2830fa6eddcf4fadf619eb17b (patch)
tree753a13fc244b1b9fe7280176927d056c530922bc /crates/shirabe-external-packages/src/symfony/console/command/complete_command.rs
parent1628e4b1e03c00a97fd4804d76790fa3972153aa (diff)
downloadphp-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.rs5
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!()