From c3bf6c567ba2eac2830fa6eddcf4fadf619eb17b Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 22 Jun 2026 03:56:30 +0900 Subject: 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. --- .../src/symfony/console/command/complete_command.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crates/shirabe-external-packages/src/symfony/console/command/complete_command.rs') 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>) -> String { - let borrowed = command.borrow(); - let _is_lazy = (*borrowed).as_any().downcast_ref::().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!() -- cgit v1.3.1