class TransportFactory implements Factory (View source)

Creates an email transport from a DSN string A DSN defined in an environment variable has priority over a DSN defined in yml config file

Methods

public
object
create(string $service, array $params = [])

Creates a new service instance.

Details

object create(string $service, array $params = [])

Creates a new service instance.

Parameters

string $service

The class name of the service.

array $params

The constructor parameters.

Return Value

object

The created service instances.