function ManifestLoader::fromFile
2 calls to ManifestLoader::fromFile()
- ManifestLoader::fromPhar in vendor/
phar-io/ manifest/ src/ ManifestLoader.php - PharLoader::loadPharExtensionsInDirectory in vendor/
phpunit/ phpunit/ src/ Runner/ Extension/ PharLoader.php - @psalm-param non-empty-string $directory
File
-
vendor/
phar-io/ manifest/ src/ ManifestLoader.php, line 16
Class
Namespace
PharIo\ManifestCode
public static function fromFile(string $filename) : Manifest {
try {
return (new ManifestDocumentMapper())->map(ManifestDocument::fromFile($filename));
} catch (Exception $e) {
throw new ManifestLoaderException(sprintf('Loading %s failed.', $filename), (int) $e->getCode(), $e);
}
}