Page MenuHomePhabricator

final class PhabricatorScopedEnv
Phabricator Technical Documentation ()

Scope guard to hold a temporary environment. See PhabricatorEnv for instructions on use.

Tasks

Internals

  • public function __construct($stack_key)
  • public function __destruct() โ€” Release the scoped environment.

Overriding Environment Configuration

  • public function overrideEnvConfig($key, $value) โ€” Override a configuration key in this scope, setting it to a new value.

Methods

public function overrideEnvConfig($key, $value)

Override a configuration key in this scope, setting it to a new value.

Parameters
string$keyKey to override.
wild$valueNew value.
Return
this

public function __construct($stack_key)

This method is not documented.
Parameters
$stack_key
Return
this//Implicit.//

public function __destruct()

Release the scoped environment.

Return
void