File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 12
12
namespace FOS \UserBundle ;
13
13
14
14
use FOS \UserBundle \DependencyInjection \Compiler \ValidationPass ;
15
- use Doctrine \Bundle \DoctrineBundle \DependencyInjection \CompilerPass \ RegisterMappingsPass ;
15
+ use Doctrine \Bundle \DoctrineBundle \DependencyInjection \Compiler \ DoctrineOrmMappingsPass ;
16
16
use Symfony \Component \HttpKernel \Bundle \Bundle ;
17
17
use Symfony \Component \DependencyInjection \ContainerBuilder ;
18
18
@@ -27,11 +27,11 @@ public function build(ContainerBuilder $container)
27
27
parent ::build ($ container );
28
28
$ container ->addCompilerPass (new ValidationPass ());
29
29
30
- if (class_exists ('Doctrine\Bundle\DoctrineBundle\DependencyInjection\CompilerPass\RegisterMappingsPass ' )) {
30
+ if (class_exists ('Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass ' )) {
31
31
$ mappings = array (
32
32
realpath (__DIR__ .'/Resources/config/doctrine/model ' ) => 'FOS\UserBundle\Model ' ,
33
33
);
34
- $ container ->addCompilerPass (new RegisterMappingsPass ($ mappings, ' xml ' , 'fos_user.backend_type_orm ' ));
34
+ $ container ->addCompilerPass (DoctrineOrmMappingsPass:: createXmlMappingDriver ($ mappings , 'fos_user.backend_type_orm ' ));
35
35
}
36
36
37
37
// TODO: couch, mongo
You can’t perform that action at this time.
0 commit comments