From 9d9da0d1512202af7802d13b1c3c33a1a077a84e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 10 Aug 2026 04:38:35 +0900 Subject: refactor(symfony): hide leaf modules behind their parent re-exports Every parent module in the symfony-* crates already re-exported its leaf modules with `pub use`, so each item was reachable by two paths. Make the leaf modules private and route all callers through the single re-exported path. Co-Authored-By: Claude Opus 5 (1M context) --- .../shirabe-symfony-console/src/helper/process_helper.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'crates/shirabe-symfony-console/src/helper/process_helper.rs') diff --git a/crates/shirabe-symfony-console/src/helper/process_helper.rs b/crates/shirabe-symfony-console/src/helper/process_helper.rs index be1c1a84..e0e94c47 100644 --- a/crates/shirabe-symfony-console/src/helper/process_helper.rs +++ b/crates/shirabe-symfony-console/src/helper/process_helper.rs @@ -1,12 +1,12 @@ //! ref: composer/vendor/symfony/console/Helper/ProcessHelper.php -use crate::helper::debug_formatter_helper::DebugFormatterHelper; -use crate::helper::helper::Helper; -use crate::helper::helper_interface::HelperInterface; -use crate::helper::helper_set::HelperSet; +use crate::helper::DebugFormatterHelper; +use crate::helper::Helper; +use crate::helper::HelperInterface; +use crate::helper::HelperSet; use crate::output::ConsoleOutputInterface; -use crate::output::output_interface::{self, OutputInterface}; -use shirabe_symfony_process::exception::process_failed_exception::ProcessFailedException; +use crate::output::{OutputInterface, output_interface}; +use shirabe_symfony_process::exception::ProcessFailedException; use shirabe_symfony_process::process::Process; /// The ProcessHelper class provides helpers to run external processes. @@ -54,7 +54,7 @@ impl ProcessHelper { // reduces to a downcast to the concrete type. let output: std::rc::Rc> = { let redirected = shirabe_php_shim::AsAny::as_any(&*output.borrow()) - .downcast_ref::() + .downcast_ref::() .map(|console| console.get_error_output()); redirected.unwrap_or(output) }; @@ -228,7 +228,7 @@ impl ProcessHelper { // reduces to a downcast to the concrete type. let output: std::rc::Rc> = { let redirected = shirabe_php_shim::AsAny::as_any(&*output.borrow()) - .downcast_ref::() + .downcast_ref::() .map(|console| console.get_error_output()); redirected.unwrap_or(output) }; -- cgit v1.3.1-4-g156e