TransportFactory implements SingletonInterface, LoggerAwareInterface uses LoggerAwareTrait
TransportFactory
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
- LoggerAwareInterface
Constants
- SPOOL_FILE = 'file'
- SPOOL_MEMORY = 'memory'
Properties
- $dispatcher : EventDispatcherInterface
- $logManager : LogManagerInterface
Methods
- __construct() : mixed
- get() : TransportInterface
- Gets a transport from settings.
- 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) : mixed
Parameters
- $dispatcher : EventDispatcherInterface
- $logManager : LogManagerInterface
get()
Gets a transport from settings.
public
get(array<string|int, mixed> $mailSettings) : TransportInterface
Parameters
- $mailSettings : array<string|int, mixed>
-
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>