summaryrefslogtreecommitdiff
path: root/app/php/facades/Facade.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-06 17:11:10 +0200
committeremkael <emkael@tlen.pl>2016-05-06 17:11:10 +0200
commit7017ae3f4a567ab5d1f26fe04122cac981dcfe29 (patch)
treebd67a97a3658b2bf07d1a9616b932ab0bdef3155 /app/php/facades/Facade.php
parent5888fa8b601963cbea68462116577332404fe138 (diff)
* application event raising from facades
Diffstat (limited to 'app/php/facades/Facade.php')
-rw-r--r--app/php/facades/Facade.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/php/facades/Facade.php b/app/php/facades/Facade.php
index 9fc2c88..99f5f56 100644
--- a/app/php/facades/Facade.php
+++ b/app/php/facades/Facade.php
@@ -47,6 +47,12 @@ class Facade {
return $this->getClient()->queryForMap($sqlMap, $params, $key, $value);
}
+ protected function raiseEvent($event, ...$params) {
+ return Prado::getApplication()->getModule('events')->raiseApplicationEvent(
+ $event, ...$params
+ );
+ }
+
}
?>