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

Breadcrumb

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

interface LoaderInterface

Same name in this branch
  1. 11.1.x vendor/twig/twig/src/Loader/LoaderInterface.php \Twig\Loader\LoaderInterface
  2. 11.1.x vendor/symfony/serializer/Mapping/Loader/LoaderInterface.php \Symfony\Component\Serializer\Mapping\Loader\LoaderInterface
  3. 11.1.x vendor/symfony/validator/Mapping/Loader/LoaderInterface.php \Symfony\Component\Validator\Mapping\Loader\LoaderInterface

Defines a loader that takes an array to create package instances

@author Jordi Boggiano <j.boggiano@seld.be>

Hierarchy

  • interface \Composer\Package\Loader\LoaderInterface

Expanded class hierarchy of LoaderInterface

All classes that implement LoaderInterface

2 files declare their use of LoaderInterface
ArtifactRepository.php in vendor/composer/composer/src/Composer/Repository/ArtifactRepository.php
VcsRepository.php in vendor/composer/composer/src/Composer/Repository/VcsRepository.php

File

vendor/composer/composer/src/Composer/Package/Loader/LoaderInterface.php, line 26

Namespace

Composer\Package\Loader
View source
interface LoaderInterface {
    
    /**
     * Converts a package from an array to a real instance
     *
     * @param  mixed[] $config package data
     * @param  string  $class  FQCN to be instantiated
     *
     * @return CompletePackage|CompleteAliasPackage|RootPackage|RootAliasPackage
     *
     * @phpstan-param class-string<CompletePackage|RootPackage> $class
     */
    public function load(array $config, string $class = 'Composer\\Package\\CompletePackage') : BasePackage;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
LoaderInterface::load public function Converts a package from an array to a real instance 2

API Navigation

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