From 40e963f47cae60e32bfa8079106d8f17ed802487 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Fri, 17 Oct 2014 13:53:51 +0400 Subject: [PATCH] Move EventDispatcher class to a separate namespace --- Plugin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Plugin.php b/Plugin.php index ec24f78..f8ba352 100644 --- a/Plugin.php +++ b/Plugin.php @@ -42,6 +42,8 @@ namespace Mibew\Mibew\Plugin\Boilerplate; +use Mibew\EventDispatcher\EventDispatcher; + /** * Defenition of the main plugin class. * @@ -102,7 +104,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi { // We need an instatance of EventDispatcher class to attach handlers to // events. So get it. - $dispatcher = \Mibew\EventDispatcher::getInstance(); + $dispatcher = EventDispatcher::getInstance(); // There are a lot of events. Use a few of them to show how they work. $dispatcher->attachListener('pageAddCSS', $this, 'addCustomCss'); }