/**
* @param array<string, mixed> $options
*/
public function createTransport(string
$dsn, array
$options, SerializerInterface
$serializer): TransportInterface
{ unset($options['transport_name'
],
$options['use_notify'
]);
// Always allow PostgreSQL-specific keys, to be able to transparently fallback to the native driver when LISTEN/NOTIFY isn't available
$configuration = Connection::
buildConfiguration($dsn,
$options);
$connection =
new Connection($configuration,
$this->connection
);
return new DoctrineTransport($connection,
$serializer);
} /**
* @param array<string, mixed> $options
*/
public function supports(string
$dsn, array
$options): bool
{ return str_starts_with($dsn, 'doctrine://'
);
}}