aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/component/filesystem
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-08 02:23:31 +0900
committernsfisis <nsfisis@gmail.com>2026-06-08 02:23:31 +0900
commit06368584a9277022d9cfc42d22c37f4cc6e580f8 (patch)
treea210e77273316ce94530391ea4e6dc4ee60b42ea /crates/shirabe-external-packages/src/symfony/component/filesystem
parent318ea948f5932dfa7942081a269d62fd7161a9bf (diff)
downloadphp-shirabe-06368584a9277022d9cfc42d22c37f4cc6e580f8.tar.gz
php-shirabe-06368584a9277022d9cfc42d22c37f4cc6e580f8.tar.zst
php-shirabe-06368584a9277022d9cfc42d22c37f4cc6e580f8.zip
refactor(external-packages): drop component segment from symfony paths
Align the Symfony namespace mapping with the documented convention (symfony::component::X -> symfony::X) and remove now-unused console stub files. Update all import paths across the workspace. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/component/filesystem')
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/filesystem/exception/io_exception.rs29
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/filesystem/exception/mod.rs3
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs137
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/filesystem/mod.rs5
4 files changed, 0 insertions, 174 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/component/filesystem/exception/io_exception.rs b/crates/shirabe-external-packages/src/symfony/component/filesystem/exception/io_exception.rs
deleted file mode 100644
index a5f2844..0000000
--- a/crates/shirabe-external-packages/src/symfony/component/filesystem/exception/io_exception.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-#[derive(Debug)]
-pub struct IOException {
- pub message: String,
- pub code: i64,
- pub path: Option<String>,
-}
-
-impl IOException {
- pub fn new(
- message: String,
- code: i64,
- _previous: Option<Box<dyn std::error::Error + Send + Sync>>,
- path: Option<String>,
- ) -> Self {
- Self {
- message,
- code,
- path,
- }
- }
-}
-
-impl std::fmt::Display for IOException {
- fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- write!(f, "{}", self.message)
- }
-}
-
-impl std::error::Error for IOException {}
diff --git a/crates/shirabe-external-packages/src/symfony/component/filesystem/exception/mod.rs b/crates/shirabe-external-packages/src/symfony/component/filesystem/exception/mod.rs
deleted file mode 100644
index 2c19405..0000000
--- a/crates/shirabe-external-packages/src/symfony/component/filesystem/exception/mod.rs
+++ /dev/null
@@ -1,3 +0,0 @@
-pub mod io_exception;
-
-pub use io_exception::*;
diff --git a/crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs b/crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs
deleted file mode 100644
index 522309e..0000000
--- a/crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs
+++ /dev/null
@@ -1,137 +0,0 @@
-use shirabe_php_shim::PhpMixed;
-
-#[derive(Debug, Clone)]
-pub struct Filesystem;
-
-impl Default for Filesystem {
- fn default() -> Self {
- Self::new()
- }
-}
-
-impl Filesystem {
- pub fn new() -> Self {
- todo!()
- }
-
- pub fn copy(
- &self,
- _origin_file: &str,
- _target_file: &str,
- _override_file: bool,
- ) -> anyhow::Result<()> {
- todo!()
- }
-
- pub fn mkdir(&self, _dirs: PhpMixed, _mode: u32) -> anyhow::Result<()> {
- todo!()
- }
-
- pub fn exists(&self, _files: PhpMixed) -> bool {
- todo!()
- }
-
- pub fn touch(
- &self,
- _files: PhpMixed,
- _time: Option<i64>,
- _atime: Option<i64>,
- ) -> anyhow::Result<()> {
- todo!()
- }
-
- pub fn remove(&self, _files: PhpMixed) -> anyhow::Result<()> {
- todo!()
- }
-
- pub fn chmod(
- &self,
- _files: PhpMixed,
- _mode: u32,
- _umask: u32,
- _recursive: bool,
- ) -> anyhow::Result<()> {
- todo!()
- }
-
- pub fn chown(&self, _files: PhpMixed, _user: PhpMixed, _recursive: bool) -> anyhow::Result<()> {
- todo!()
- }
-
- pub fn chgrp(
- &self,
- _files: PhpMixed,
- _group: PhpMixed,
- _recursive: bool,
- ) -> anyhow::Result<()> {
- todo!()
- }
-
- pub fn rename(&self, _origin: &str, _target: &str, _override_file: bool) -> anyhow::Result<()> {
- todo!()
- }
-
- pub fn symlink(
- &self,
- _origin_dir: &str,
- _target_dir: &str,
- _copy_on_windows: bool,
- ) -> anyhow::Result<()> {
- todo!()
- }
-
- pub fn hard_link(&self, _origin_file: &str, _target_files: PhpMixed) -> anyhow::Result<()> {
- todo!()
- }
-
- pub fn read_link(&self, _path: &str) -> String {
- todo!()
- }
-
- pub fn make_path_relative(&self, _end_path: &str, _start_path: &str) -> String {
- todo!()
- }
-
- pub fn mirror(
- &self,
- _origin_dir: &str,
- _target_dir: &str,
- _iterator: Option<PhpMixed>,
- _options: &indexmap::IndexMap<String, PhpMixed>,
- ) -> anyhow::Result<()> {
- todo!()
- }
-
- pub fn is_absolute_path(&self, _file: &str) -> bool {
- todo!()
- }
-
- pub fn dump_file(&self, _filename: &str, _content: &str) -> anyhow::Result<()> {
- todo!()
- }
-
- pub fn append_to_file(&self, _filename: &str, _content: &str) -> anyhow::Result<()> {
- todo!()
- }
-
- pub fn temp_nam(&self, _dir: &str, _prefix: &str) -> anyhow::Result<String> {
- todo!()
- }
-
- // Static-style helper methods used in the ported codebase
- pub fn is_readable(_path: &str) -> bool {
- todo!()
- }
-
- pub fn is_local_path(_path: &str) -> bool {
- todo!()
- }
-
- pub fn trim_trailing_slash(_path: &str) -> String {
- todo!()
- }
-
- pub fn get_platform_path(_path: &str) -> String {
- todo!()
- }
-}
diff --git a/crates/shirabe-external-packages/src/symfony/component/filesystem/mod.rs b/crates/shirabe-external-packages/src/symfony/component/filesystem/mod.rs
deleted file mode 100644
index 24be2ed..0000000
--- a/crates/shirabe-external-packages/src/symfony/component/filesystem/mod.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-pub mod exception;
-pub mod filesystem;
-
-pub use exception::*;
-pub use filesystem::*;