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

Breadcrumb

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

function Platform::putEnv

putenv() equivalent but updates the runtime global variables too

9 calls to Platform::putEnv()
Application::doRun in vendor/composer/composer/src/Composer/Console/Application.php
Runs the current application.
AutoloadGenerator::dump in vendor/composer/composer/src/Composer/Autoload/AutoloadGenerator.php
CreateProjectCommand::installRootPackage in vendor/composer/composer/src/Composer/Command/CreateProjectCommand.php
EventDispatcher::doDispatch in vendor/composer/composer/src/Composer/EventDispatcher/EventDispatcher.php
Triggers the listeners of an event.
EventDispatcher::ensureBinDirIsInPath in vendor/composer/composer/src/Composer/EventDispatcher/EventDispatcher.php

... See full list

File

vendor/composer/composer/src/Composer/Util/Platform.php, line 92

Class

Platform
Platform helper for uniform platform-specific tests.

Namespace

Composer\Util

Code

public static function putEnv(string $name, string $value) : void {
    putenv($name . '=' . $value);
    $_SERVER[$name] = $_ENV[$name] = $value;
}

API Navigation

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