function PharInvocationResolver::retrieveInvocation
Retrieves PharInvocation, either existing in collection or created on demand with resolving a potential alias name used in the according Phar archive.
Parameters
string $baseName:
int $flags:
Return value
1 call to PharInvocationResolver::retrieveInvocation()
- PharInvocationResolver::resolve in misc/
typo3/ phar-stream-wrapper/ src/ Resolver/ PharInvocationResolver.php - Resolves PharInvocation value object (baseName and optional alias).
File
-
misc/
typo3/ phar-stream-wrapper/ src/ Resolver/ PharInvocationResolver.php, line 93
Class
Namespace
TYPO3\PharStreamWrapper\ResolverCode
private function retrieveInvocation($baseName, $flags) {
$invocation = $this->findByBaseName($baseName);
if ($invocation !== null) {
return $invocation;
}
if ($flags & static::RESOLVE_ALIAS) {
$reader = new Reader($baseName);
$alias = $reader->resolveContainer()
->getAlias();
}
else {
$alias = '';
}
// add unconfirmed(!) new invocation to collection
$invocation = new PharInvocation($baseName, $alias);
Manager::instance()->getCollection()
->collect($invocation);
return $invocation;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.