From 8bd02532cd04ee12d7595029c206f3dc5ab9dd96 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 6 Jun 2026 21:22:22 +0900 Subject: chore(shirabe): remove ports of PHP @deprecated APIs Composer does not use its own deprecated APIs internally, so drop their Rust ports: whole deprecated classes, methods, constants, and field. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/command/base_command.rs | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'crates/shirabe/src/command/base_command.rs') diff --git a/crates/shirabe/src/command/base_command.rs b/crates/shirabe/src/command/base_command.rs index b6664e7..8aff0d9 100644 --- a/crates/shirabe/src/command/base_command.rs +++ b/crates/shirabe/src/command/base_command.rs @@ -157,14 +157,6 @@ pub trait BaseCommand { /// Gets the application instance for this command. fn get_application(&self) -> Result; - /// @deprecated since Composer 2.3.0 use requireComposer or tryComposer depending on whether you have $required set to true or false - fn get_composer( - &mut self, - required: bool, - disable_plugins: Option, - disable_scripts: Option, - ) -> Result>; - /// Retrieves the default Composer\Composer instance or throws fn require_composer( &mut self, @@ -295,21 +287,6 @@ impl BaseCommand for C { todo!() } - fn get_composer( - &mut self, - required: bool, - disable_plugins: Option, - disable_scripts: Option, - ) -> Result> { - if required { - return Ok(Some( - self.require_composer(disable_plugins, disable_scripts)?, - )); - } - - Ok(self.try_composer(disable_plugins, disable_scripts)) - } - fn require_composer( &mut self, _disable_plugins: Option, -- cgit v1.3.1