Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DumpCompletionCommand.php

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\Command

Code

private static function guessShell() : string {
    return basename($_SERVER['SHELL'] ?? '');
}
RSS feed
Powered by Drupal