From dbf90eb3dce9e0928ae540bac81e3ea476b6e6b5 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Mon, 20 Oct 2014 08:35:43 +0000 Subject: [PATCH] e "pageAdd*" events from the Events class --- Plugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugin.php b/Plugin.php index f8ba352..135fa88 100644 --- a/Plugin.php +++ b/Plugin.php @@ -43,6 +43,7 @@ namespace Mibew\Mibew\Plugin\Boilerplate; use Mibew\EventDispatcher\EventDispatcher; +use Mibew\EventDispatcher\Events; /** * Defenition of the main plugin class. @@ -106,7 +107,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi // events. So get it. $dispatcher = EventDispatcher::getInstance(); // There are a lot of events. Use a few of them to show how they work. - $dispatcher->attachListener('pageAddCSS', $this, 'addCustomCss'); + $dispatcher->attachListener(Events::PAGE_ADD_CSS, $this, 'addCustomCss'); } /**