From 64e02ef08f0f479937fc194f79eac997327a79dd Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 9 Aug 2026 11:15:55 +0900 Subject: refactor(symfony-filesystem): extract symfony/filesystem into the shirabe-symfony-filesystem crate Move `Symfony\Component\Filesystem` out of shirabe-external-packages and into its own crate, so the path is `shirabe_symfony_filesystem::Filesystem` instead of `shirabe_external_packages::symfony::filesystem::Filesystem`. Co-Authored-By: Claude Opus 5 (1M context) --- .../src/exception/io_exception.rs | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 crates/shirabe-symfony-filesystem/src/exception/io_exception.rs (limited to 'crates/shirabe-symfony-filesystem/src/exception') diff --git a/crates/shirabe-symfony-filesystem/src/exception/io_exception.rs b/crates/shirabe-symfony-filesystem/src/exception/io_exception.rs new file mode 100644 index 00000000..07a189c3 --- /dev/null +++ b/crates/shirabe-symfony-filesystem/src/exception/io_exception.rs @@ -0,0 +1,29 @@ +//! ref: composer/vendor/symfony/filesystem/Exception/IOException.php + +use shirabe_php_shim::RuntimeException; + +#[derive(Debug)] +pub struct IOException { + inner: RuntimeException, + pub path: Option, +} + +impl IOException { + pub fn new( + message: String, + code: i64, + previous: Option>, + path: Option, + ) -> Self { + Self { + inner: RuntimeException::with_code_and_previous(message, code, previous), + path, + } + } +} + +shirabe_php_shim::impl_php_exception!( + IOException, + inner, + r"Symfony\Component\Filesystem\Exception\IOException" +); -- cgit v1.3.1-4-g156e