Consolidation\Cgr\Application::buildGlobalCommand PHP Метод

buildGlobalCommand() публичный Метод

Generate command string to call composer COMMAND to install one project.
public buildGlobalCommand ( $composerCommand, $execPath, array $composerArgs, string $projectWithVersion, array $env, string $installLocation ) : CommandToExec
$composerArgs array The arguments to pass to composer
$projectWithVersion string The project:version to install
$env array Environment to set prior to exec
$installLocation string Location to install the project
Результат CommandToExec
    public function buildGlobalCommand($composerCommand, $execPath, $composerArgs, $projectWithVersion, $env, $installLocation)
    {
        $projectSpecificArgs = array("--working-dir={$installLocation}", $composerCommand, $projectWithVersion);
        $arguments = array_merge($composerArgs, $projectSpecificArgs);
        return new CommandToExec($execPath, $arguments, $env, $installLocation);
    }