From f31b101ce1e921a026ba234b1f0a83b0392bc118 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 20 May 2026 08:33:49 +0900 Subject: fix(compile): fix all remaining compile errors Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/shirabe/src/plugin/plugin_interface.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crates/shirabe/src/plugin/plugin_interface.rs') diff --git a/crates/shirabe/src/plugin/plugin_interface.rs b/crates/shirabe/src/plugin/plugin_interface.rs index a7bb384..d3083cc 100644 --- a/crates/shirabe/src/plugin/plugin_interface.rs +++ b/crates/shirabe/src/plugin/plugin_interface.rs @@ -2,6 +2,7 @@ use crate::composer::Composer; use crate::io::io_interface::IOInterface; +use crate::plugin::capable::Capable; pub const PLUGIN_API_VERSION: &'static str = "2.9.0"; @@ -15,4 +16,15 @@ pub trait PluginInterface: std::fmt::Debug { fn clone_box(&self) -> Box { todo!() } + + // TODO(plugin): PHP-side `instanceof` checks for EventSubscriberInterface / Capable. + // EventSubscriberInterface is not dyn-compatible (its only method is associated, not + // a `&self` method), so we expose a boolean predicate instead. + fn is_event_subscriber_interface(&self) -> bool { + false + } + + fn as_capable(&self) -> Option<&dyn Capable> { + None + } } -- cgit v1.3.1