aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/factory.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-09 11:19:03 +0900
committernsfisis <nsfisis@gmail.com>2026-08-09 11:19:03 +0900
commit6051927c8fa32cfffa102d2a170c5a6cf747a1b9 (patch)
tree3fe6769c90cb03ca8f1b9b825e38ad459182361e /crates/shirabe/src/factory.rs
parente3e8806aec771e482899ed3470e920f7b291fa95 (diff)
downloadphp-shirabe-6051927c8fa32cfffa102d2a170c5a6cf747a1b9.tar.gz
php-shirabe-6051927c8fa32cfffa102d2a170c5a6cf747a1b9.tar.zst
php-shirabe-6051927c8fa32cfffa102d2a170c5a6cf747a1b9.zip
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/factory.rs')
-rw-r--r--crates/shirabe/src/factory.rs10
1 files changed, 5 insertions, 5 deletions
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))),
)