@@ 33-38 (lines=6) @@ | ||
30 | { |
|
31 | $config = $container->getExtensionConfig('gesdinet_jwt_refresh_token')[0]; |
|
32 | ||
33 | if (!class_exists('Doctrine\Bundle\MongoDBBundle\DependencyInjection\Compiler\DoctrineMongoDBMappingsPass') |
|
34 | && (isset($config['manager_type']) && 'mongodb' === strtolower($config['manager_type'])) |
|
35 | ) { |
|
36 | // skip MongoDB ODM mappings |
|
37 | return; |
|
38 | } |
|
39 | ||
40 | if (!class_exists('Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass') |
|
41 | && (!isset($config['manager_type']) || 'mongodb' !== strtolower($config['manager_type'])) |
|
@@ 40-45 (lines=6) @@ | ||
37 | return; |
|
38 | } |
|
39 | ||
40 | if (!class_exists('Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass') |
|
41 | && (!isset($config['manager_type']) || 'mongodb' !== strtolower($config['manager_type'])) |
|
42 | ) { |
|
43 | // skip ORM mappings |
|
44 | return; |
|
45 | } |
|
46 | ||
47 | $mappingPass = isset($config['manager_type']) && 'mongodb' === strtolower($config['manager_type']) |
|
48 | ? $this->getODMCompilerPass($config) |