From 6051927c8fa32cfffa102d2a170c5a6cf747a1b9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 9 Aug 2026 11:19:03 +0900 Subject: refactor(symfony-console): extract symfony/console into the shirabe-symfony-console crate Move `Symfony\Component\Console` out of shirabe-external-packages and into its own crate, so the path is `shirabe_symfony_console::application::Application` instead of `shirabe_external_packages::symfony::console::application::Application`. The `delegate_to_inner!` and `delegate_command_trait_impls_to_inner!` macros move with it. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe/src/factory.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/shirabe/src/factory.rs') diff --git a/crates/shirabe/src/factory.rs b/crates/shirabe/src/factory.rs index 18ff8ef5..6d20c3cb 100644 --- a/crates/shirabe/src/factory.rs +++ b/crates/shirabe/src/factory.rs @@ -51,10 +51,6 @@ use crate::util::ProcessExecutor; use crate::util::Silencer; use crate::util::r#loop::Loop; use indexmap::IndexMap; -use shirabe_external_packages::symfony::console::formatter::OutputFormatter; -use shirabe_external_packages::symfony::console::formatter::OutputFormatterStyle; -use shirabe_external_packages::symfony::console::formatter::OutputFormatterStyleInterface; -use shirabe_external_packages::symfony::console::output::ConsoleOutput; use shirabe_php_shim::Catch as _; use shirabe_php_shim::{ InvalidArgumentException, PATHINFO_EXTENSION, PHP_EOL, PHP_OS, PhpMixed, RuntimeException, @@ -62,6 +58,10 @@ use shirabe_php_shim::{ file_exists, file_get_contents, file_put_contents, implode, is_dir, is_file, json_decode, mkdir, pathinfo, realpath, rename, rtrim, strpos, strtr, substr, trim, }; +use shirabe_symfony_console::formatter::OutputFormatter; +use shirabe_symfony_console::formatter::OutputFormatterStyle; +use shirabe_symfony_console::formatter::OutputFormatterStyleInterface; +use shirabe_symfony_console::output::ConsoleOutput; /// Either a configuration array or a filename to read from. PHP's `$localConfig` accepts both. pub enum LocalConfigInput { @@ -402,7 +402,7 @@ impl Factory { let formatter = OutputFormatter::new(false, styles); ConsoleOutput::new( - Some(shirabe_external_packages::symfony::console::output::output_interface::VERBOSITY_NORMAL), + Some(shirabe_symfony_console::output::output_interface::VERBOSITY_NORMAL), None, Some(std::rc::Rc::new(std::cell::RefCell::new(formatter))), ) -- cgit v1.3.1-4-g156e