class ConfigValidator (View source)

Validates a composer configuration.

Methods

__construct(IOInterface $io)

No description

array
validate(string $file, int $arrayLoaderValidationFlags = ValidatingArrayLoader::CHECK_ALL)

Validates the config, and returns the result.

Details

__construct(IOInterface $io)

Parameters

IOInterface $io

array validate(string $file, int $arrayLoaderValidationFlags = ValidatingArrayLoader::CHECK_ALL)

Validates the config, and returns the result.

Parameters

string $file The path to the file
int $arrayLoaderValidationFlags Flags for ArrayLoader validation

Return Value

array a triple containing the errors, publishable errors, and warnings