function ArgvInput::getRawTokens
Returns un-parsed and not validated tokens.
Parameters
bool $strip Whether to return the raw parameters (false) or the values after the command name (true):
Return value
list<string>
File
-
vendor/
symfony/ console/ Input/ ArgvInput.php, line 361
Class
- ArgvInput
- ArgvInput represents an input coming from the CLI arguments.
Namespace
Symfony\Component\Console\InputCode
public function getRawTokens(bool $strip = false) : array {
if (!$strip) {
return $this->tokens;
}
$parameters = [];
$keep = false;
foreach ($this->tokens as $value) {
if (!$keep && $value === $this->getFirstArgument()) {
$keep = true;
continue;
}
if ($keep) {
$parameters[] = $value;
}
}
return $parameters;
}