public registerPlugin ( Swift_Events_EventListener $plugin ) | ||
$plugin | Swift_Events_EventListener |
public function registerPlugin(Swift_Events_EventListener $plugin);
function __construct(LoggerInterface $logger, \Swift_Transport $transport) { $this->logger = $logger; // We register the plugin here and not using the swiftmailer.plugin tag // to avoid the ServiceCircularReferenceException we get when Monolog is // configured to mail the messages through SwiftMailer. $transport->registerPlugin(new \Swift_Plugins_LoggerPlugin($this)); }