function DumpCompletionCommand::guessShell
2 calls to DumpCompletionCommand::guessShell()
- DumpCompletionCommand::configure in vendor/
symfony/ console/ Command/ DumpCompletionCommand.php - Configures the current command.
- DumpCompletionCommand::execute in vendor/
symfony/ console/ Command/ DumpCompletionCommand.php - Executes the current command.
File
-
vendor/
symfony/ console/ Command/ DumpCompletionCommand.php, line 114
Class
- DumpCompletionCommand
- Dumps the completion script for the current shell.
Namespace
Symfony\Component\Console\CommandCode
private static function guessShell() : string {
return basename($_SERVER['SHELL'] ?? '');
}