createProjectContext()
приватный Метод
The home directory is read from the context variable "PULI_HOME".
If this variable is not set, the home directory defaults to:
* $HOME/.puli on Linux, where $HOME is the context variable
"HOME".
* $APPDATA/Puli on Windows, where $APPDATA is the context
variable "APPDATA".
If none of these variables can be found, an exception is thrown.
A .htaccess file is put into the home directory to protect it from web
access.
private createProjectContext ( string $rootDir, $env ) : Puli\Manager\Api\Context\ProjectContext |
$rootDir |
string |
The path to the project. |
Результат |
Puli\Manager\Api\Context\ProjectContext |
The project context. |