class ValidatingArrayLoader implements LoaderInterface (View source)

Constants

CHECK_ALL

CHECK_UNBOUND_CONSTRAINTS

CHECK_STRICT_CONSTRAINTS

Methods

__construct(LoaderInterface $loader, $strictName = true, VersionParser $parser = null, $flags = 0)

No description

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

Converts a package from an array to a real instance

getWarnings()

No description

getErrors()

No description

Details

__construct(LoaderInterface $loader, $strictName = true, VersionParser $parser = null, $flags = 0)

Parameters

LoaderInterface $loader
$strictName
VersionParser $parser
$flags

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

Converts a package from an array to a real instance

Parameters

array $config
string $class Package class to use

Return Value

PackageInterface

getWarnings()

getErrors()