1
0
Fork 0

Add exclude-from-classmap support in validation

pull/4568/head
Jordi Boggiano 2015-10-30 20:04:25 +00:00
parent 6c16510743
commit ac1a0c898d
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ class ValidatingArrayLoader implements LoaderInterface
} }
if ($this->validateArray('autoload') && !empty($this->config['autoload'])) { if ($this->validateArray('autoload') && !empty($this->config['autoload'])) {
$types = array('psr-0', 'psr-4', 'classmap', 'files'); $types = array('psr-0', 'psr-4', 'classmap', 'files', 'exclude-from-classmap');
foreach ($this->config['autoload'] as $type => $typeConfig) { foreach ($this->config['autoload'] as $type => $typeConfig) {
if (!in_array($type, $types)) { if (!in_array($type, $types)) {
$this->errors[] = 'autoload : invalid value ('.$type.'), must be one of '.implode(', ', $types); $this->errors[] = 'autoload : invalid value ('.$type.'), must be one of '.implode(', ', $types);