Composer API
Class

Composer\Util\ConfigValidator

class ConfigValidator

Validates a composer configuration.

Methods

__construct(IOInterface $io)

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

Validates the config, and returns the result.

Details

at line 33
public __construct(IOInterface $io)

Parameters

IOInterface $io

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