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

Methods

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
throws
Exception
throws
RuntimeException
Return values
TransportInterface

        
On this page

Search results