function Process::escapeShellCommand
Escapes an array of arguments that make up a shell command
Parameters
string[] $args Argument list, with the module name first:
1 call to Process::escapeShellCommand()
- XdebugHandler::doRestart in vendor/
composer/ xdebug-handler/ src/ XdebugHandler.php - Executes the restarted command then deletes the tmp ini
File
-
vendor/
composer/ xdebug-handler/ src/ Process.php, line 72
Class
- Process
- Process utility functions
Namespace
Composer\XdebugHandlerCode
public static function escapeShellCommand(array $args) : string {
$command = '';
$module = array_shift($args);
if ($module !== null) {
$command = self::escape($module, true, true);
foreach ($args as $arg) {
$command .= ' ' . self::escape($arg);
}
}
return $command;
}