class SwiftMailerHandler extends SwiftMailerHandler

Extended SwiftMailerHandler that flushes mail queue if necessary.

Properties

protected $transport
protected $instantFlush

Methods

setTransport(Swift_Transport $transport)

No description

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}

reset()

{@inheritdoc}

Details

at line 29
setTransport(Swift_Transport $transport)

Parameters

Swift_Transport $transport

at line 37
onKernelTerminate(PostResponseEvent $event)

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

Parameters

PostResponseEvent $event

at line 45
onCliTerminate(ConsoleTerminateEvent $event)

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

Parameters

ConsoleTerminateEvent $event

at line 53
protected send($content, array $records)

{@inheritdoc}

Parameters

$content
array $records

at line 65
reset()

{@inheritdoc}