Consolidation\Cgr\Application::buildConfigCommand PHP Method

buildConfigCommand() public method

Generate command string to call composer config KEY VALUE to install one project.
public buildConfigCommand ( string $execPath, array $composerArgs, string $key, string $value, array $env, string $installLocation ) : CommandToExec
$execPath string The path to composer
$composerArgs array The arguments to pass to composer
$key string The config item to set
$value string The value to set the config item to
$env array Environment to set prior to exec
$installLocation string Location to install the project
return CommandToExec
    public function buildConfigCommand($execPath, $composerArgs, $key, $value, $env, $installLocation)
    {
        $projectSpecificArgs = array("--working-dir={$installLocation}", 'config', $key, $value);
        $arguments = array_merge($composerArgs, $projectSpecificArgs);
        return new CommandToExec($execPath, $arguments, $env, $installLocation);
    }