public function __construct(IEventDispatcher $dispatcher = null) { parent::__construct(); $this->_dispatcher = $dispatcher ? $dispatcher : EventDispatcher::create($this); }