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/progress_bar.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/progress_bar.rs')
| -rw-r--r-- | crates/shirabe-symfony-console/src/helper/progress_bar.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe-symfony-console/src/helper/progress_bar.rs b/crates/shirabe-symfony-console/src/helper/progress_bar.rs index 44e144cf..b0124419 100644 --- a/crates/shirabe-symfony-console/src/helper/progress_bar.rs +++ b/crates/shirabe-symfony-console/src/helper/progress_bar.rs @@ -1,8 +1,8 @@ //! ref: composer/vendor/symfony/console/Helper/ProgressBar.php use crate::cursor::Cursor; -use crate::exception::logic_exception::LogicException; -use crate::helper::helper::Helper; +use crate::exception::LogicException; +use crate::helper::Helper; use crate::output::ConsoleOutputInterface; use crate::output::ConsoleSectionOutput; use crate::output::OutputInterface; @@ -73,7 +73,7 @@ impl ProgressBar { // reduces to a downcast to the concrete type. let output: std::rc::Rc<std::cell::RefCell<dyn OutputInterface>> = { let redirected = shirabe_php_shim::AsAny::as_any(&*output.borrow()) - .downcast_ref::<crate::output::console_output::ConsoleOutput>() + .downcast_ref::<crate::output::ConsoleOutput>() .map(|console| console.get_error_output()); redirected.unwrap_or(output) }; |
