interface LoaderInterface (View source)

Defines a loader that takes an array to create package instances

Methods

load(array $package, string $class = 'Composer\\Package\\CompletePackage')

Converts a package from an array to a real instance

Details

PackageInterface load(array $package, string $class = 'Composer\\Package\\CompletePackage')

Converts a package from an array to a real instance

Parameters

array $package Package config
string $class Package class to use

Return Value

PackageInterface