TransportFactory
Read onlyYes
Table of Contents
Constants
- SPOOL_FILE = 'file'
- SPOOL_MEMORY = 'memory'
Properties
- $dispatcher : EventDispatcherInterface
- $logManager : LogManagerInterface
Methods
- __construct() : mixed
- get() : TransportInterface
- createSpool() : DelayedTransportInterface
- Creates a spool from mail settings.
Constants
SPOOL_FILE
public
mixed
SPOOL_FILE
= 'file'
SPOOL_MEMORY
public
mixed
SPOOL_MEMORY
= 'memory'
Properties
$dispatcher
protected
EventDispatcherInterface
$dispatcher
$logManager
protected
LogManagerInterface
$logManager
Methods
__construct()
public
__construct(EventDispatcherInterface $dispatcher, LogManagerInterface $logManager, LoggerInterface $logger, FileNameValidator $fileNameValidator) : mixed
Parameters
- $dispatcher : EventDispatcherInterface
- $logManager : LogManagerInterface
- $logger : LoggerInterface
- $fileNameValidator : FileNameValidator
get()
public
get(array<string|int, mixed> $mailSettings) : TransportInterface
Parameters
- $mailSettings : array<string|int, mixed>
-
Typically from $GLOBALS['TYPO3_CONF_VARS']['MAIL']
Tags
Return values
TransportInterfacecreateSpool()
Creates a spool from mail settings.
protected
createSpool(array<string|int, mixed> $mailSettings) : DelayedTransportInterface
Parameters
- $mailSettings : array<string|int, mixed>