aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/system/SlimAppEvent.php
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/system/SlimAppEvent.php')
-rwxr-xr-xmain/app/system/SlimAppEvent.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/app/system/SlimAppEvent.php b/main/app/system/SlimAppEvent.php
new file mode 100755
index 0000000..f1217a5
--- /dev/null
+++ b/main/app/system/SlimAppEvent.php
@@ -0,0 +1,29 @@
+<?php
+/**
+ * UserFrosting (http://www.userfrosting.com)
+ *
+ * @link https://github.com/userfrosting/UserFrosting
+ * @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
+ */
+namespace UserFrosting\System;
+
+use RocketTheme\Toolbox\Event\Event;
+use Slim\App;
+
+/**
+ * Used for events that need to access the Slim application.
+ */
+class SlimAppEvent extends Event
+{
+ protected $app;
+
+ public function __construct(App $app)
+ {
+ $this->app = $app;
+ }
+
+ public function getApp()
+ {
+ return $this->app;
+ }
+}