mirror of
https://github.com/Mibew/boilerplate-plugin.git
synced 2025-02-05 08:44:42 +03:00
e "pageAdd*" events from the Events class
This commit is contained in:
parent
40e963f47c
commit
dbf90eb3dc
@ -43,6 +43,7 @@
|
|||||||
namespace Mibew\Mibew\Plugin\Boilerplate;
|
namespace Mibew\Mibew\Plugin\Boilerplate;
|
||||||
|
|
||||||
use Mibew\EventDispatcher\EventDispatcher;
|
use Mibew\EventDispatcher\EventDispatcher;
|
||||||
|
use Mibew\EventDispatcher\Events;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defenition of the main plugin class.
|
* Defenition of the main plugin class.
|
||||||
@ -106,7 +107,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
// events. So get it.
|
// events. So get it.
|
||||||
$dispatcher = EventDispatcher::getInstance();
|
$dispatcher = EventDispatcher::getInstance();
|
||||||
// There are a lot of events. Use a few of them to show how they work.
|
// 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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user