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

Breadcrumb

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

function XdebugHandler::getCommand

Returns the command line arguments for the restart

Parameters

non-empty-list<string> $argv:

Return value

non-empty-list<string>

1 call to XdebugHandler::getCommand()
XdebugHandler::prepareRestart in vendor/composer/xdebug-handler/src/XdebugHandler.php
Returns the command line array if everything was written for the restart

File

vendor/composer/xdebug-handler/src/XdebugHandler.php, line 436

Class

XdebugHandler
@author John Stevenson <john-stevenson@blueyonder.co.uk>

Namespace

Composer\XdebugHandler

Code

private function getCommand(array $argv, string $tmpIni, string $mainScript) : array {
    $php = [
        PHP_BINARY,
    ];
    $args = array_slice($argv, 1);
    if (!$this->persistent) {
        // Use command-line options
        array_push($php, '-n', '-c', $tmpIni);
    }
    return array_merge($php, [
        $mainScript,
    ], $args);
}

API Navigation

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