W3cubDocs

/Symfony 4.1

SwiftMailerHandler

class SwiftMailerHandler extends SwiftMailerHandler

Extended SwiftMailerHandler that flushes mail queue if necessary.

Properties

protected $transport
protected $instantFlush

Methods

setTransport(Swift_Transport $transport)
onKernelTerminate(PostResponseEvent $event)

After the kernel has been terminated we will always flush messages.

onCliTerminate(ConsoleTerminateEvent $event)

After the CLI application has been terminated we will always flush messages.

send($content, array $records)

{@inheritdoc}

Details

setTransport(Swift_Transport $transport)

Parameters

Swift_Transport $transport

onKernelTerminate(PostResponseEvent $event)

After the kernel has been terminated we will always flush messages.

Parameters

PostResponseEvent $event

onCliTerminate(ConsoleTerminateEvent $event)

After the CLI application has been terminated we will always flush messages.

Parameters

ConsoleTerminateEvent $event

protected send($content, array $records)

{@inheritdoc}

Parameters

$content
array $records

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Monolog/Handler/SwiftMailerHandler.html