Move EventDispatcher class to a separate namespace

This commit is contained in:
Dmitriy Simushev 2014-10-17 09:50:09 +00:00
parent 04e26a16c3
commit d052c6eb03

View File

@ -23,6 +23,7 @@
namespace Mibew\Mibew\Plugin\TitleNotification; namespace Mibew\Mibew\Plugin\TitleNotification;
use Mibew\EventDispatcher\EventDispatcher;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
/** /**
@ -90,7 +91,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
public function run() public function run()
{ {
// Attach CSS and JS files of the plugin to chat window. // Attach CSS and JS files of the plugin to chat window.
$dispatcher = \Mibew\EventDispatcher::getInstance(); $dispatcher = EventDispatcher::getInstance();
$dispatcher->attachListener('pageAddJS', $this, 'attachJsFiles'); $dispatcher->attachListener('pageAddJS', $this, 'attachJsFiles');
} }