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/installer.rs | |
| 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/installer.rs')
| -rw-r--r-- | crates/shirabe/src/installer.rs | 54 |
1 files changed, 1 insertions, 53 deletions
diff --git a/crates/shirabe/src/installer.rs b/crates/shirabe/src/installer.rs index 2783364..ff8a80d 100644 --- a/crates/shirabe/src/installer.rs +++ b/crates/shirabe/src/installer.rs @@ -38,7 +38,7 @@ use shirabe_php_shim::{ PhpMixed, RuntimeException, array_flip, array_map, array_merge, array_unique, array_values, clone, count, defined, gc_collect_cycles, gc_disable, gc_enable, get_class, implode, in_array, intval, is_dir, is_numeric, is_string, max_i64, sprintf, strcmp, strpos, strtolower, touch, - trigger_error, usort, + usort, }; use shirabe_semver; @@ -1828,17 +1828,6 @@ impl Installer { self } - /// set whether to run scripts or not - /// - /// This is disabled implicitly when enabling dryRun - /// - /// Deprecated: Use setRunScripts(false) on the EventDispatcher instance being injected instead - pub fn set_run_scripts(&mut self, run_scripts: bool) -> &mut Self { - self.run_scripts = run_scripts; - - self - } - /// set the config instance pub fn set_config(&mut self, config: std::rc::Rc<std::cell::RefCell<Config>>) -> &mut Self { self.config = config; @@ -1858,27 +1847,6 @@ impl Installer { self.verbose } - /// set ignore Platform Package requirements - /// - /// If this is set to true, all platform requirements are ignored - /// If this is set to false, no platform requirements are ignored - /// If this is set to string[], those packages will be ignored - /// - /// Deprecated: use setPlatformRequirementFilter instead - pub fn set_ignore_platform_requirements( - &mut self, - ignore_platform_reqs: shirabe_php_shim::PhpMixed, - ) -> anyhow::Result<&mut Self> { - trigger_error( - "Installer::setIgnorePlatformRequirements is deprecated since Composer 2.2, use setPlatformRequirementFilter instead.", - shirabe_php_shim::E_USER_DEPRECATED, - ); - - Ok(self.set_platform_requirement_filter( - PlatformRequirementFilterFactory::from_bool_or_list(ignore_platform_reqs)?, - )) - } - pub fn set_platform_requirement_filter( &mut self, platform_requirement_filter: std::rc::Rc<dyn PlatformRequirementFilterInterface>, @@ -1976,16 +1944,6 @@ impl Installer { self } - /// Should an audit be run after installation is complete? - /// - /// Deprecated: Use setAuditConfig instead of calling this - pub fn set_audit(&mut self, audit: bool) -> &mut Self { - self.audit = audit; - self.audit_config = None; // Invalidate cached config - - self - } - /// Should exit with status code 5 on audit error pub fn set_error_on_audit(&mut self, error_on_audit: bool) -> &mut Self { self.error_on_audit = error_on_audit; @@ -1993,16 +1951,6 @@ impl Installer { self } - /// What format should be used for audit output? - /// - /// Deprecated: Use setAuditConfig instead of calling this - pub fn set_audit_format(&mut self, audit_format: String) -> &mut Self { - self.audit_format = audit_format; - self.audit_config = None; // Invalidate cached config - - self - } - /// Sets a custom AuditConfig to override the default configuration from Config pub fn set_audit_config(&mut self, audit_config: AuditConfig) -> &mut Self { self.audit_config = Some(audit_config); |
