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

Breadcrumb

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

function Status::__construct

Same name in this branch
  1. 11.1.x vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Status.php \Opentelemetry\Proto\Trace\V1\Status::__construct()

Parameters

string $envAllowXdebug Prefixed _ALLOW_XDEBUG name:

bool $debug Whether debug output is required:

File

vendor/composer/xdebug-handler/src/Status.php, line 56

Class

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

Namespace

Composer\XdebugHandler

Code

public function __construct(string $envAllowXdebug, bool $debug) {
    $start = getenv(self::ENV_RESTART);
    Process::setEnv(self::ENV_RESTART);
    $this->time = is_numeric($start) ? round((microtime(true) - $start) * 1000) : 0;
    $this->envAllowXdebug = $envAllowXdebug;
    $this->debug = $debug && defined('STDERR');
    $this->modeOff = false;
}

API Navigation

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