File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55namespace Yokai \SecurityTokenBundle ;
66
7+ use Doctrine \Bundle \DoctrineBundle \DependencyInjection \Compiler \DoctrineOrmMappingsPass ;
78use Symfony \Component \Console \Application ;
89use Symfony \Component \DependencyInjection \ContainerBuilder ;
910use Symfony \Component \HttpKernel \Bundle \Bundle ;
@@ -40,10 +41,16 @@ public function build(ContainerBuilder $container): void
4041 UserManagerInterface::class,
4142 0
4243 );
44+ $ registerEntityMapping = DoctrineOrmMappingsPass::createXmlMappingDriver (
45+ [realpath (__DIR__ . '/../config/doctrine ' ) => 'Yokai\SecurityTokenBundle\Entity ' ],
46+ ['doctrine.orm.entity_manager ' ],
47+ false
48+ );
4349
4450 $ container
4551 ->addCompilerPass ($ registerTokenConfiguration )
4652 ->addCompilerPass ($ registerUserManager )
53+ ->addCompilerPass ($ registerEntityMapping )
4754 ;
4855 }
4956
You can’t perform that action at this time.
0 commit comments