From e8479442287638a3ef18fd027507e1e1f11bf013 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Fri, 17 Oct 2014 09:48:32 +0000 Subject: [PATCH] Move EventDispatcher class to a separate namespace --- Plugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugin.php b/Plugin.php index 035c7fd..49ff24f 100644 --- a/Plugin.php +++ b/Plugin.php @@ -23,6 +23,7 @@ namespace Mibew\Mibew\Plugin\Emoji; +use Mibew\EventDispatcher\EventDispatcher; use Symfony\Component\HttpFoundation\Request; /** @@ -70,7 +71,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi public function run() { // Attach CSS and JS files of the plugin to chat window. - $dispatcher = \Mibew\EventDispatcher::getInstance(); + $dispatcher = EventDispatcher::getInstance(); $dispatcher->attachListener('pageAddCSS', $this, 'attachCssFiles'); $dispatcher->attachListener('pageAddJS', $this, 'attachJsFiles'); $dispatcher->attachListener('pageAddJSPluginOptions', $this, 'attachPluginOptions');