Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ManifestLoader.php

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

ManifestLoader

Namespace

PharIo\Manifest

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal