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

Breadcrumb

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

function PhpConfig::getDataAndReset

Returns restart data if available and resets the environment

@phpstan-return restartData|null

3 calls to PhpConfig::getDataAndReset()
PhpConfig::useOriginal in vendor/composer/xdebug-handler/src/PhpConfig.php
Use the original PHP configuration
PhpConfig::usePersistent in vendor/composer/xdebug-handler/src/PhpConfig.php
Use environment variables to persist settings
PhpConfig::useStandard in vendor/composer/xdebug-handler/src/PhpConfig.php
Use standard restart settings

File

vendor/composer/xdebug-handler/src/PhpConfig.php, line 70

Class

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

Namespace

Composer\XdebugHandler

Code

private function getDataAndReset() : ?array {
    $data = XdebugHandler::getRestartSettings();
    if ($data !== null) {
        $this->updateEnv('PHPRC', $data['phprc']);
        $this->updateEnv('PHP_INI_SCAN_DIR', $data['scanDir']);
    }
    return $data;
}

API Navigation

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