TransportFactory
in package
implements
TransportFactoryInterface
Tags
Table of Contents
Interfaces
- TransportFactoryInterface
- Creates a Messenger transport.
Properties
- $factories : iterable<string|int, mixed>
Methods
- __construct() : mixed
- createTransport() : TransportInterface
- supports() : bool
Properties
$factories
private
iterable<string|int, mixed>
$factories
Methods
__construct()
public
__construct(iterable<mixed, TransportFactoryInterface> $factories) : mixed
Parameters
- $factories : iterable<mixed, TransportFactoryInterface>
createTransport()
public
createTransport(string $dsn, array<string|int, mixed> $options, SerializerInterface $serializer) : TransportInterface
Parameters
- $dsn : string
- $options : array<string|int, mixed>
- $serializer : SerializerInterface
Return values
TransportInterfacesupports()
public
supports(string $dsn, array<string|int, mixed> $options) : bool
Parameters
- $dsn : string
- $options : array<string|int, mixed>