test for the Validator component to be present
This commit is contained in:
parent
89d5ec002e
commit
fb9b08396b
|
@ -751,6 +751,10 @@ class FrameworkExtension extends Extension
|
|||
return;
|
||||
}
|
||||
|
||||
if (!class_exists('Symfony\Component\Validator\Validation')) {
|
||||
throw new LogicException('Validation support cannot be enabled as the Validator component is not installed.');
|
||||
}
|
||||
|
||||
$loader->load('validator.xml');
|
||||
|
||||
$validatorBuilder = $container->getDefinition('validator.builder');
|
||||
|
|
Reference in New Issue