Browse Source

added validator pass to pass config

Johannes M. Schmitt 14 năm trước cách đây
mục cha
commit
c77fb2d0a0
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php

+ 2 - 0
src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php

@@ -2,6 +2,7 @@
 
 namespace Symfony\Bundle\FrameworkBundle;
 
+use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConstraintValidatorsPass;
 use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddTemplatingRenderersPass;
 use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\RegisterKernelListenersPass;
 use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddSecurityVotersPass;
@@ -64,5 +65,6 @@ class FrameworkBundle extends Bundle
         $container->addCompilerPass(new ProfilerPass());
         $container->addCompilerPass(new RegisterKernelListenersPass());
         $container->addCompilerPass(new AddTemplatingRenderersPass());
+        $container->addCompilerPass(new AddConstraintValidatorsPass());
     }
 }