We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 973ad2c commit 9f5768dCopy full SHA for 9f5768d
FOSUserBundle.php
@@ -28,6 +28,12 @@ public function build(ContainerBuilder $container)
28
parent::build($container);
29
$container->addCompilerPass(new ValidationPass());
30
31
+ if (! class_exists('Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass\RegisterMappingsPass')) {
32
+ // TODO: provide a temporary implementation of the compiler pass in FOSUserBundle
33
+ // so people can already use the Model class even with older symfony?
34
+ return;
35
+ }
36
+
37
$mappings = array(
38
realpath(__DIR__.'/Resources/config/doctrine/model') => 'FOS\UserBundle\Model',
39
);
0 commit comments