You are here

public function TransportFactory::__construct in Swift Mailer 8

Same name and namespace in other branches
  1. 8.2 src/TransportFactory.php \Drupal\swiftmailer\TransportFactory::__construct()

Constructs a TransportFactory object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

File

src/TransportFactory.php, line 30

Class

TransportFactory
A service that instantiates transport subsystems.

Namespace

Drupal\swiftmailer

Code

public function __construct(ConfigFactoryInterface $config_factory) {
  $this->transportConfig = $config_factory
    ->get('swiftmailer.transport');
}