public function Input::escapeToken in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Input/Input.php \Symfony\Component\Console\Input\Input::escapeToken()
Escapes a token through escapeshellarg if it contains unsafe chars.
Parameters
string $token:
Return value
string
1 call to Input::escapeToken()
- ArrayInput::__toString in vendor/
symfony/ console/ Input/ ArrayInput.php - Returns a stringified representation of the args passed to the command.
File
- vendor/
symfony/ console/ Input/ Input.php, line 229
Class
- Input
- Input is the base class for all concrete Input classes.
Namespace
Symfony\Component\Console\InputCode
public function escapeToken($token) {
return preg_match('{^[\\w-]+$}', $token) ? $token : escapeshellarg($token);
}