You are here

protected function PharStreamWrapper::collectInvocation in Drupal 7

Parameters

string $path:

1 call to PharStreamWrapper::collectInvocation()
PharStreamWrapper::assert in misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php

File

misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php, line 437

Class

PharStreamWrapper

Namespace

TYPO3\PharStreamWrapper

Code

protected function collectInvocation($path) {
  if (isset($this->invocation)) {
    return;
  }
  $manager = Manager::instance();
  $this->invocation = $manager
    ->resolve($path);
  if ($this->invocation === null) {
    throw new Exception('Expected invocation could not be resolved', 1556389591);
  }

  // confirm, previous interceptor(s) validated invocation
  $this->invocation
    ->confirm();
  $collection = $manager
    ->getCollection();
  if (!$collection
    ->has($this->invocation)) {
    $collection
      ->collect($this->invocation);
  }
}