class InMemoryTransportFactory implements TransportFactoryInterface, ResetInterface
{ /**
* @var InMemoryTransport[]
*/
private array
$createdTransports =
[];
public function createTransport(string
$dsn, array
$options, SerializerInterface
$serializer): TransportInterface
{ ['serialize' =>
$serialize] =
$this->
parseDsn($dsn);
return $this->createdTransports
[] =
new InMemoryTransport($serialize ?
$serializer : null
);
} public function supports(string
$dsn, array
$options): bool
{ return str_starts_with($dsn, 'in-memory://'
);
} /**
* @return void
*/
public function reset() {