public function setEventDispatcher(EventDispatcherInterface $dispatcher) { if ($this->started) { throw new LogicException('Puli is already started'); } $this->dispatcher = $dispatcher; }