Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
25 | public function process(ContainerBuilder $container) |
||
26 | { |
||
27 | $mappings = array( |
||
28 | realpath(__DIR__.'/../../Resources/config/doctrine-orm') => 'Gesdinet\JWTRefreshTokenBundle\Entity', |
||
29 | ); |
||
30 | $config = $container->getExtensionConfig('gesdinet_jwt_refresh_token')[0]; |
||
31 | if (isset($config['refresh_token_entity'])) { |
||
32 | $mappings[realpath(__DIR__.'/../../Resources/config/doctrine-superclass')] = 'Gesdinet\JWTRefreshTokenBundle\Entity'; |
||
33 | } else { |
||
34 | $mappings[realpath(__DIR__.'/../../Resources/config/doctrine-entity')] = 'Gesdinet\JWTRefreshTokenBundle\Entity'; |
||
35 | } |
||
36 | |||
37 | $pass = DoctrineOrmMappingsPass::createYamlMappingDriver($mappings); |
||
38 | $pass->process($container); |
||
39 | } |
||
40 | } |
||
41 |