diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php index 35b6240992..bb690d064e 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php @@ -505,7 +505,8 @@ class FrameworkExtension extends Extension private function getValidatorXmlMappingFiles(ContainerBuilder $container) { - $files = array(); + $files = array(__DIR__.'/../../../Component/Form/Resources/config/validation.xml'); + $container->addResource(new FileResource($files[0])); foreach ($container->getParameter('kernel.bundles') as $bundle) { $reflection = new \ReflectionClass($bundle); diff --git a/src/Symfony/Component/Form/Resources/config/validation.xml b/src/Symfony/Component/Form/Resources/config/validation.xml new file mode 100644 index 0000000000..128cd85e59 --- /dev/null +++ b/src/Symfony/Component/Form/Resources/config/validation.xml @@ -0,0 +1,90 @@ + + + + + + + + Symfony\Component\Form\Validator\DelegatingValidator + validateFormData + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +