function CompletionInput::getRelevantToken
The token of the cursor, or the last token if the cursor is at the end of the input.
1 call to CompletionInput::getRelevantToken()
- CompletionInput::bind in vendor/
symfony/ console/ Completion/ CompletionInput.php - Binds the current Input instance with the given arguments and options.
File
-
vendor/
symfony/ console/ Completion/ CompletionInput.php, line 211
Class
- CompletionInput
- An input specialized for shell completion.
Namespace
Symfony\Component\Console\CompletionCode
private function getRelevantToken() : string {
return $this->tokens[$this->isCursorFree() ? $this->currentIndex - 1 : $this->currentIndex];
}