aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-09 11:21:45 +0900
committernsfisis <nsfisis@gmail.com>2026-08-09 11:21:45 +0900
commit548ec1ffb232da4411ae8890080bcfd63300cda0 (patch)
tree2860e71a0fe1b72a959f90d15ab543c9a72bae1d /crates/shirabe
parenta8a4b54b90e6433cf4a25a88a4765243f831ebef (diff)
downloadphp-shirabe-548ec1ffb232da4411ae8890080bcfd63300cda0.tar.gz
php-shirabe-548ec1ffb232da4411ae8890080bcfd63300cda0.tar.zst
php-shirabe-548ec1ffb232da4411ae8890080bcfd63300cda0.zip
refactor(seld-signal): extract seld/signal into the shirabe-seld-signal crate
Move `Seld\Signal` out of shirabe-external-packages and into its own crate, so the path is `shirabe_seld_signal::SignalHandler` instead of `shirabe_external_packages::seld::signal::SignalHandler`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe')
-rw-r--r--crates/shirabe/Cargo.toml1
-rw-r--r--crates/shirabe/src/command/create_project_command.rs2
-rw-r--r--crates/shirabe/src/command/require_command.rs2
-rw-r--r--crates/shirabe/src/installer/installation_manager.rs2
-rw-r--r--crates/shirabe/src/util/process_executor.rs2
5 files changed, 5 insertions, 4 deletions
diff --git a/crates/shirabe/Cargo.toml b/crates/shirabe/Cargo.toml
index 35aa4737..eef7daf4 100644
--- a/crates/shirabe/Cargo.toml
+++ b/crates/shirabe/Cargo.toml
@@ -11,6 +11,7 @@ shirabe-pcre.workspace = true
shirabe-php-rpc.workspace = true
shirabe-php-shim.workspace = true
shirabe-seld-json-lint.workspace = true
+shirabe-seld-signal.workspace = true
shirabe-semver.workspace = true
shirabe-spdx-licenses.workspace = true
shirabe-symfony-console.workspace = true
diff --git a/crates/shirabe/src/command/create_project_command.rs b/crates/shirabe/src/command/create_project_command.rs
index a0a4aa2e..e8f7d187 100644
--- a/crates/shirabe/src/command/create_project_command.rs
+++ b/crates/shirabe/src/command/create_project_command.rs
@@ -36,7 +36,6 @@ use crate::util::Filesystem;
use crate::util::Platform;
use crate::util::ProcessExecutor;
use indexmap::IndexMap;
-use shirabe_external_packages::seld::signal::SignalHandler;
use shirabe_pcre::{CaptureKey, Preg};
use shirabe_php_shim::Catch as _;
use shirabe_php_shim::{
@@ -44,6 +43,7 @@ use shirabe_php_shim::{
chdir, explode_with_limit, file_exists, getcwd, impl_php_class, implode, is_dir, is_file,
mkdir, realpath, rtrim, strtolower, unlink,
};
+use shirabe_seld_signal::SignalHandler;
use shirabe_symfony_console::command::command::Command;
use shirabe_symfony_console::input::InputInterface;
use shirabe_symfony_console::output::OutputInterface;
diff --git a/crates/shirabe/src/command/require_command.rs b/crates/shirabe/src/command/require_command.rs
index 44ebc54c..30e727d4 100644
--- a/crates/shirabe/src/command/require_command.rs
+++ b/crates/shirabe/src/command/require_command.rs
@@ -32,12 +32,12 @@ use crate::util::Filesystem;
use crate::util::PackageSorter;
use crate::util::Silencer;
use indexmap::IndexMap;
-use shirabe_external_packages::seld::signal::SignalHandler;
use shirabe_php_shim::{
PhpMixed, RuntimeException, array_fill_keys, array_intersect, array_keys, array_map,
array_merge, array_unique, empty, file_exists, file_get_contents, file_put_contents, filesize,
impl_php_class, implode, is_writable, strtolower, unlink,
};
+use shirabe_seld_signal::SignalHandler;
use shirabe_symfony_console::command::command::Command;
use shirabe_symfony_console::input::InputInterface;
use shirabe_symfony_console::output::OutputInterface;
diff --git a/crates/shirabe/src/installer/installation_manager.rs b/crates/shirabe/src/installer/installation_manager.rs
index 454dfa86..24960d28 100644
--- a/crates/shirabe/src/installer/installation_manager.rs
+++ b/crates/shirabe/src/installer/installation_manager.rs
@@ -21,11 +21,11 @@ use crate::util::Platform;
use crate::util::r#loop::Loop;
use crate::util::sync_executor;
use indexmap::IndexMap;
-use shirabe_external_packages::seld::signal::SignalHandler;
use shirabe_php_shim::{
InvalidArgumentException, PhpMixed, array_splice, array_unshift, http_build_query, json_encode,
str_contains, str_replace, strpos, strtolower,
};
+use shirabe_seld_signal::SignalHandler;
/// Package operation manager.
#[derive(Debug)]
diff --git a/crates/shirabe/src/util/process_executor.rs b/crates/shirabe/src/util/process_executor.rs
index 91c27fd0..97f4ed3d 100644
--- a/crates/shirabe/src/util/process_executor.rs
+++ b/crates/shirabe/src/util/process_executor.rs
@@ -6,7 +6,6 @@ use crate::io::io_interface;
use crate::util::GitHub;
use crate::util::Platform;
use indexmap::IndexMap;
-use shirabe_external_packages::seld::signal::SignalHandler;
use shirabe_pcre::{CaptureKey, Preg};
use shirabe_php_shim::Catch as _;
use shirabe_php_shim::{
@@ -15,6 +14,7 @@ use shirabe_php_shim::{
php_regex, rtrim, str_replace, strcspn, strlen, strpbrk, strtolower, strtr_array,
substr_replace, trim,
};
+use shirabe_seld_signal::SignalHandler;
use shirabe_symfony_process::ExecutableFinder;
use shirabe_symfony_process::Process;
use shirabe_symfony_process::ProcessMock;