diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-12 02:10:40 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-12 02:17:58 +0900 |
| commit | a8aa49013faa6c43bef628eea6d6b5687100c17a (patch) | |
| tree | 6ba8358baaefec0352b099a4b98df88eeee12fe8 /crates | |
| parent | 5df72ff9fdc392529884647deac55dfbd9810476 (diff) | |
| download | php-shirabe-a8aa49013faa6c43bef628eea6d6b5687100c17a.tar.gz php-shirabe-a8aa49013faa6c43bef628eea6d6b5687100c17a.tar.zst php-shirabe-a8aa49013faa6c43bef628eea6d6b5687100c17a.zip | |
feat(port): port PluginBlockedException.php
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/shirabe-php-shim/Cargo.toml | 4 | ||||
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 5 | ||||
| -rw-r--r-- | crates/shirabe/Cargo.toml | 3 | ||||
| -rw-r--r-- | crates/shirabe/src/plugin/plugin_blocked_exception.rs | 5 |
4 files changed, 17 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/Cargo.toml b/crates/shirabe-php-shim/Cargo.toml new file mode 100644 index 0000000..d565ea7 --- /dev/null +++ b/crates/shirabe-php-shim/Cargo.toml @@ -0,0 +1,4 @@ +[package] +name = "shirabe-php-shim" +version.workspace = true +edition.workspace = true diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs new file mode 100644 index 0000000..0e8fab5 --- /dev/null +++ b/crates/shirabe-php-shim/src/lib.rs @@ -0,0 +1,5 @@ +#[derive(Debug)] +pub struct UnexpectedValueException { + pub message: String, + pub code: i64, +} diff --git a/crates/shirabe/Cargo.toml b/crates/shirabe/Cargo.toml index 597a886..28d0456 100644 --- a/crates/shirabe/Cargo.toml +++ b/crates/shirabe/Cargo.toml @@ -2,3 +2,6 @@ name = "shirabe" version.workspace = true edition.workspace = true + +[dependencies] +shirabe-php-shim.workspace = true diff --git a/crates/shirabe/src/plugin/plugin_blocked_exception.rs b/crates/shirabe/src/plugin/plugin_blocked_exception.rs index ea89194..b8f2301 100644 --- a/crates/shirabe/src/plugin/plugin_blocked_exception.rs +++ b/crates/shirabe/src/plugin/plugin_blocked_exception.rs @@ -1 +1,6 @@ //! ref: composer/src/Composer/Plugin/PluginBlockedException.php + +use shirabe_php_shim::UnexpectedValueException; + +// TODO(plugin): PluginBlockedException is a part of Plugin API. +pub struct PluginBlockedException(pub UnexpectedValueException); |
