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

Breadcrumb

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

function CliRequest::getUri

Overrides Request::getUri

File

vendor/symfony/console/Debug/CliRequest.php, line 33

Class

CliRequest
@internal

Namespace

Symfony\Component\Console\Debug

Code

public function getUri() : string {
    if ($this->server
        ->has('SYMFONY_CLI_BINARY_NAME')) {
        $binary = $this->server
            ->get('SYMFONY_CLI_BINARY_NAME') . ' console';
    }
    else {
        $binary = $this->server
            ->get('argv')[0];
    }
    return $binary . ' ' . $this->command->input;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal