SwiftMailerHandler

class SwiftMailerHandler extends SwiftMailerHandler

Extended SwiftMailerHandler that flushes mail queue if necessary.

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.

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

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