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

Breadcrumb

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

function XdebugHandler::getRestartSettings

Returns an array of restart settings or null

Settings will be available if the current process was restarted, or called with the settings from an existing restart.

@phpstan-return restartData|null

2 calls to XdebugHandler::getRestartSettings()
PhpConfig::getDataAndReset in vendor/composer/xdebug-handler/src/PhpConfig.php
Returns restart data if available and resets the environment
XdebugHandler::check in vendor/composer/xdebug-handler/src/XdebugHandler.php
Checks if Xdebug is loaded and the process needs to be restarted

File

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

Class

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

Namespace

Composer\XdebugHandler

Code

public static function getRestartSettings() : ?array {
    $envArgs = explode('|', (string) getenv(self::RESTART_SETTINGS));
    if (count($envArgs) !== 6 || !self::$inRestart && php_ini_loaded_file() !== $envArgs[0]) {
        return null;
    }
    return [
        'tmpIni' => $envArgs[0],
        'scannedInis' => (bool) $envArgs[1],
        'scanDir' => '*' === $envArgs[2] ? false : $envArgs[2],
        'phprc' => '*' === $envArgs[3] ? false : $envArgs[3],
        'inis' => explode(PATH_SEPARATOR, $envArgs[4]),
        'skipped' => $envArgs[5],
    ];
}

API Navigation

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