@@ 26-28 (lines=3) @@ | ||
23 | public function __construct() |
|
24 | { |
|
25 | $mongoType = '\Doctrine\ODM\MongoDB\Types\Type'; |
|
26 | if (class_exists($mongoType) && !call_user_func($mongoType.'::hasType', MongoIdType::NAME)) { |
|
27 | call_user_func($mongoType.'::addType', MongoIdType::NAME, MongoIdType::class); |
|
28 | } |
|
29 | ||
30 | $DBALType = '\Doctrine\DBAL\Types\Type'; |
|
31 | if (class_exists($DBALType) && !call_user_func($DBALType.'::hasType', DBALIdType::NAME)) { |
|
@@ 31-33 (lines=3) @@ | ||
28 | } |
|
29 | ||
30 | $DBALType = '\Doctrine\DBAL\Types\Type'; |
|
31 | if (class_exists($DBALType) && !call_user_func($DBALType.'::hasType', DBALIdType::NAME)) { |
|
32 | call_user_func($DBALType.'::addType', DBALIdType::NAME, DBALIdType::class); |
|
33 | } |
|
34 | } |
|
35 | ||
36 | public function build(ContainerBuilder $container) |