diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-06 21:22:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-06 21:33:05 +0900 |
| commit | 8bd02532cd04ee12d7595029c206f3dc5ab9dd96 (patch) | |
| tree | 5f9897bfefcb9a503d92560311c4d95ee620a025 /crates/shirabe/src/command | |
| parent | c0b743c8d75813003756a72d2fdd110de8368b5f (diff) | |
| download | php-shirabe-8bd02532cd04ee12d7595029c206f3dc5ab9dd96.tar.gz php-shirabe-8bd02532cd04ee12d7595029c206f3dc5ab9dd96.tar.zst php-shirabe-8bd02532cd04ee12d7595029c206f3dc5ab9dd96.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command')
| -rw-r--r-- | crates/shirabe/src/command/base_command.rs | 23 |
1 files changed, 0 insertions, 23 deletions
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<Application>; - /// @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<bool>, - disable_scripts: Option<bool>, - ) -> Result<Option<PartialComposerHandle>>; - /// Retrieves the default Composer\Composer instance or throws fn require_composer( &mut self, @@ -295,21 +287,6 @@ impl<C: HasBaseCommandData> BaseCommand for C { todo!() } - fn get_composer( - &mut self, - required: bool, - disable_plugins: Option<bool>, - disable_scripts: Option<bool>, - ) -> Result<Option<PartialComposerHandle>> { - 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<bool>, |
