public function setRootDirectory($rootDir) { if ($this->started) { throw new LogicException('Puli is already started'); } Assert::nullOrDirectory($rootDir); $this->rootDir = $rootDir ? Path::canonicalize($rootDir) : null; }