/** * Constructor. * * @param Zikula_EventManager $eventManager EventManager. */ public function __construct(EventDispatcherInterface $eventManager) { $this->eventManager = $eventManager; $this->serviceManager = $this->eventManager->getContainer(); $this->setupHandlerDefinitions(); }
/** * Loader for custom handlers. * * @param string $dir Path to the folder holding the eventhandler classes. * * @return void */ public static function attachCustomHandlers($dir) { self::$eventManager->getContainer()->get('zikula')->attachHandlers($dir); }