public function attachEvent($event, $handler, $priority = 0) { $this->eventDispatcher->addListener($event, $handler, $priority); return $this; }