From a0124b45f9dab8a0f7d4879d4ea147b414b25bf2 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 20 Sep 2015 13:11:41 -0400 Subject: Add sub namespace for plugins --- app/Core/Plugin/Base.php | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 app/Core/Plugin/Base.php (limited to 'app/Core/Plugin/Base.php') diff --git a/app/Core/Plugin/Base.php b/app/Core/Plugin/Base.php new file mode 100644 index 00000000..580d41ad --- /dev/null +++ b/app/Core/Plugin/Base.php @@ -0,0 +1,47 @@ +container; + + $this->container['dispatcher']->addListener($event, function() use ($container, $callback) { + call_user_func($callback, $container); + }); + } +} -- cgit v1.2.3