예제 #1
0
 /**
  * Constructor.
  *
  * @param Zikula_EventManager $eventManager EventManager.
  */
 public function __construct(EventDispatcherInterface $eventManager)
 {
     $this->eventManager = $eventManager;
     $this->serviceManager = $this->eventManager->getContainer();
     $this->setupHandlerDefinitions();
 }
예제 #2
0
파일: EventUtil.php 프로젝트: rmaiwald/core
 /**
  * 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);
 }