File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Bridge \Doctrine \DependencyInjection \CompilerPass ;
13
13
14
+ use Symfony \Bridge \Doctrine \Types \UlidBinaryType ;
14
15
use Symfony \Bridge \Doctrine \Types \UlidType ;
16
+ use Symfony \Bridge \Doctrine \Types \UuidBinaryType ;
15
17
use Symfony \Bridge \Doctrine \Types \UuidType ;
16
18
use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
17
19
use Symfony \Component \DependencyInjection \ContainerBuilder ;
@@ -38,6 +40,14 @@ public function process(ContainerBuilder $container)
38
40
$ typeDefinition ['ulid ' ] = ['class ' => UlidType::class];
39
41
}
40
42
43
+ if (!isset ($ typeDefinition ['uuid_binary ' ])) {
44
+ $ typeDefinition ['uuid_binary ' ] = ['class ' => UuidBinaryType::class];
45
+ }
46
+
47
+ if (!isset ($ typeDefinition ['ulid_binary ' ])) {
48
+ $ typeDefinition ['ulid_binary ' ] = ['class ' => UlidBinaryType::class];
49
+ }
50
+
41
51
$ container ->setParameter ('doctrine.dbal.connection_factory.types ' , $ typeDefinition );
42
52
}
43
53
}
You can’t perform that action at this time.
0 commit comments