function PharStreamWrapper::collectInvocation

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);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.