‪TYPO3CMS  9.5
TYPO3\CMS\Core\Mail\MemorySpool Class Reference
Inheritance diagram for TYPO3\CMS\Core\Mail\MemorySpool:
TYPO3\CMS\Core\SingletonInterface TYPO3\CMS\Core\Tests\Unit\Mail\Fixtures\FakeMemorySpoolFixture

Public Member Functions

 sendMessages ()
 
 __destruct ()
 

Detailed Description

Small wrapper for \Swift_MemorySpool

Because TYPO3 doesn't offer a terminate signal or hook, and taking in account the risk that extensions do some redirects or even exit, we simply use the destructor of a singleton class which should be pretty much at the end of a request.

To have only one memory spool per request seems to be more appropriate anyway.

This class is experimental and subject to change!

Definition at line 36 of file MemorySpool.php.

Constructor & Destructor Documentation

◆ __destruct()

TYPO3\CMS\Core\Mail\MemorySpool::__destruct ( )

Member Function Documentation

◆ sendMessages()

TYPO3\CMS\Core\Mail\MemorySpool::sendMessages ( )

Sends out the messages in the memory

Definition at line 44 of file MemorySpool.php.

Referenced by TYPO3\CMS\Core\Mail\MemorySpool\__destruct().