You are here

public static function Manager::initialize in Drupal 7

Parameters

Behavior $behaviour:

Resolvable $resolver:

Collectable $collection:

Return value

self

1 call to Manager::initialize()
file_register_phar_wrapper in includes/file.phar.inc
Registers a phar stream wrapper that is more secure than PHP's built-in one.

File

misc/typo3/phar-stream-wrapper/src/Manager.php, line 46

Class

Manager

Namespace

TYPO3\PharStreamWrapper

Code

public static function initialize(Behavior $behaviour, Resolvable $resolver = null, Collectable $collection = null) {
  if (self::$instance === null) {
    self::$instance = new self($behaviour, $resolver, $collection);
    return self::$instance;
  }
  throw new \LogicException('Manager can only be initialized once', 1535189871);
}