Composer API
Class

Composer\Package\Loader\ValidatingArrayLoader

class ValidatingArrayLoader implements LoaderInterface

Constants

CHECK_ALL

CHECK_UNBOUND_CONSTRAINTS

CHECK_STRICT_CONSTRAINTS

Methods

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

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

Converts a package from an array to a real instance

getWarnings()

getErrors()

Details

at line 38
public __construct(LoaderInterface $loader, $strictName = true, VersionParser $parser = null, $flags)

Parameters

LoaderInterface $loader
$strictName
VersionParser $parser
$flags

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

at line 300
public getWarnings()

at line 305
public getErrors()