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) --- crates/shirabe-symfony-console/src/helper/table.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'crates/shirabe-symfony-console/src/helper/table.rs') diff --git a/crates/shirabe-symfony-console/src/helper/table.rs b/crates/shirabe-symfony-console/src/helper/table.rs index 8f82c357..177e23c0 100644 --- a/crates/shirabe-symfony-console/src/helper/table.rs +++ b/crates/shirabe-symfony-console/src/helper/table.rs @@ -1,12 +1,12 @@ //! ref: composer/vendor/symfony/console/Helper/Table.php -use crate::exception::invalid_argument_exception::InvalidArgumentException; -use crate::formatter::output_formatter::OutputFormatter; -use crate::formatter::wrappable_output_formatter_interface::WrappableOutputFormatterInterface; +use crate::exception::InvalidArgumentException; +use crate::formatter::OutputFormatter; +use crate::formatter::WrappableOutputFormatterInterface; use crate::helper::{ Helper, TableCell, TableCellOption, TableCellStyle, TableRows, TableSeparator, TableStyle, }; -use crate::output::output_interface::OutputInterface; +use crate::output::OutputInterface; use indexmap::IndexMap; use shirabe_pcre::preg::Preg; use shirabe_php_shim::{PhpMixed, php_regex}; @@ -568,7 +568,7 @@ impl Table { &self.style.get_border_format(), &[PhpMixed::from(markup)], )], - crate::output::output_interface::OUTPUT_NORMAL, + crate::output::OUTPUT_NORMAL, ); } @@ -608,10 +608,9 @@ impl Table { BORDER_INSIDE })); } - self.output.borrow().writeln( - &[row_content], - crate::output::output_interface::OUTPUT_NORMAL, - ); + self.output + .borrow() + .writeln(&[row_content], crate::output::OUTPUT_NORMAL); } /// Renders table cell with padding. -- cgit v1.3.1-4-g156e