public __construct ( string | null $rootDir = null, string $env = Environment::DEV ) | ||
$rootDir | string | null | The root directory of the Puli project. If none is passed, the object operates in the global context. You can set or switch the root directories later on by calling {@link setRootDirectory()}. |
$env | string | One of the {@link Environment} constants. |
public function __construct($rootDir = null, $env = Environment::DEV)
{
$this->setRootDirectory($rootDir);
$this->setEnvironment($env);
}