aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/installer/installer_event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/installer/installer_event.rs')
-rw-r--r--crates/shirabe/src/installer/installer_event.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/crates/shirabe/src/installer/installer_event.rs b/crates/shirabe/src/installer/installer_event.rs
index 5adde1c..ca0be22 100644
--- a/crates/shirabe/src/installer/installer_event.rs
+++ b/crates/shirabe/src/installer/installer_event.rs
@@ -1,8 +1,12 @@
//! ref: composer/src/Composer/Installer/InstallerEvent.php
+use indexmap::IndexMap;
+use shirabe_php_shim::PhpMixed;
+
use crate::composer::ComposerWeakHandle;
use crate::dependency_resolver::Transaction;
use crate::event_dispatcher::Event;
+use crate::event_dispatcher::EventInterface;
use crate::io::IOInterface;
#[derive(Debug)]
@@ -55,3 +59,25 @@ impl InstallerEvent {
Some(&self.transaction)
}
}
+
+impl EventInterface for InstallerEvent {
+ fn get_name(&self) -> &str {
+ self.inner.get_name()
+ }
+
+ fn get_arguments(&self) -> &Vec<String> {
+ self.inner.get_arguments()
+ }
+
+ fn get_flags(&self) -> &IndexMap<String, PhpMixed> {
+ self.inner.get_flags()
+ }
+
+ fn is_propagation_stopped(&self) -> bool {
+ self.inner.is_propagation_stopped()
+ }
+
+ fn stop_propagation(&mut self) {
+ self.inner.stop_propagation();
+ }
+}