Composer API
Interface

Composer\Package\Loader\LoaderInterface

interface LoaderInterface

Defines a loader that takes an array to create package instances

Methods

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

Converts a package from an array to a real instance

Details

at line 29
public 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