36 private function getPlatform(
string $platform ) {
37 $platformObject = match ( $platform ) {
40 'sqlite' =>
new SqlitePlatform(),
41 default =>
throw new InvalidArgumentException(
"Unknown platform: $platform" )
50 foreach ( $customTypes as $type => [ $class, $name ] ) {
51 if ( !Type::hasType( $name ) ) {
52 Type::addType( $name, $class );
54 $platformObject->registerDoctrineTypeMapping( $type, $name );
57 return $platformObject;