public setRootDirectory ( string | null $rootDir ) | ||
$rootDir | string | null | The root directory of the managed Puli project or `null` to start Puli outside of a specific project. |
public function setRootDirectory($rootDir)
{
if ($this->started) {
throw new LogicException('Puli is already started');
}
Assert::nullOrDirectory($rootDir);
$this->rootDir = $rootDir ? Path::canonicalize($rootDir) : null;
}