public function setLogger(LoggerInterface $logger) { if ($this->started) { throw new LogicException('Puli is already started'); } $this->logger = $logger; }