diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-10 04:38:35 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-10 04:38:35 +0900 |
| commit | 9d9da0d1512202af7802d13b1c3c33a1a077a84e (patch) | |
| tree | abe363b266a61da1713c6a16702b84ea68c70882 /crates/shirabe-symfony-console/src/helper/table.rs | |
| parent | f38080643d80b258393f2b7ab20349b122fe4591 (diff) | |
| download | php-shirabe-9d9da0d1512202af7802d13b1c3c33a1a077a84e.tar.gz php-shirabe-9d9da0d1512202af7802d13b1c3c33a1a077a84e.tar.zst php-shirabe-9d9da0d1512202af7802d13b1c3c33a1a077a84e.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-symfony-console/src/helper/table.rs')
| -rw-r--r-- | crates/shirabe-symfony-console/src/helper/table.rs | 17 |
1 files changed, 8 insertions, 9 deletions
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. |
