‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Mail\TransportFactory Class Reference
Inheritance diagram for TYPO3\CMS\Core\Mail\TransportFactory:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 __construct (protected readonly EventDispatcherInterface $dispatcher, protected readonly LogManagerInterface $logManager,)
 
 get (array $mailSettings)
 

Public Attributes

const SPOOL_MEMORY = 'memory'
 
const SPOOL_FILE = 'file'
 

Protected Member Functions

 createSpool (array $mailSettings)
 

Detailed Description

TransportFactory

Definition at line 37 of file TransportFactory.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Mail\TransportFactory::__construct ( protected readonly EventDispatcherInterface  $dispatcher,
protected readonly LogManagerInterface  $logManager 
)

Definition at line 44 of file TransportFactory.php.

Member Function Documentation

◆ createSpool()

TYPO3\CMS\Core\Mail\TransportFactory::createSpool ( array  $mailSettings)
protected

Creates a spool from mail settings.

Exceptions

Definition at line 204 of file TransportFactory.php.

References TYPO3\CMS\Core\Mail\TransportFactory\SPOOL_FILE, and TYPO3\CMS\Core\Mail\TransportFactory\SPOOL_MEMORY.

Referenced by TYPO3\CMS\Core\Mail\TransportFactory\get().

◆ get()

TYPO3\CMS\Core\Mail\TransportFactory::get ( array  $mailSettings)

Gets a transport from settings.

Parameters
array$mailSettings‪from $GLOBALS['TYPO3_CONF_VARS']['MAIL']
Exceptions
Exception

Definition at line 56 of file TransportFactory.php.

References TYPO3\CMS\Core\Mail\TransportFactory\createSpool(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Member Data Documentation

◆ SPOOL_FILE

const TYPO3\CMS\Core\Mail\TransportFactory::SPOOL_FILE = 'file'

◆ SPOOL_MEMORY

const TYPO3\CMS\Core\Mail\TransportFactory::SPOOL_MEMORY = 'memory'