forked from Wavyzz/dolibarr
FIX: Update swiftmailer librairies
This commit is contained in:
@@ -20,8 +20,6 @@ class Swift_Mailer
|
||||
|
||||
/**
|
||||
* Create a new Mailer using $transport for delivery.
|
||||
*
|
||||
* @param Swift_Transport $transport
|
||||
*/
|
||||
public function __construct(Swift_Transport $transport)
|
||||
{
|
||||
@@ -54,8 +52,7 @@ class Swift_Mailer
|
||||
* The return value is the number of recipients who were accepted for
|
||||
* delivery.
|
||||
*
|
||||
* @param Swift_Mime_SimpleMessage $message
|
||||
* @param array $failedRecipients An array of failures by-reference
|
||||
* @param array $failedRecipients An array of failures by-reference
|
||||
*
|
||||
* @return int The number of successful recipients. Can be 0 which indicates failure
|
||||
*/
|
||||
@@ -63,6 +60,7 @@ class Swift_Mailer
|
||||
{
|
||||
$failedRecipients = (array) $failedRecipients;
|
||||
|
||||
// FIXME: to be removed in 7.0 (as transport must now start itself on send)
|
||||
if (!$this->transport->isStarted()) {
|
||||
$this->transport->start();
|
||||
}
|
||||
@@ -82,8 +80,6 @@ class Swift_Mailer
|
||||
|
||||
/**
|
||||
* Register a plugin using a known unique key (e.g. myPlugin).
|
||||
*
|
||||
* @param Swift_Events_EventListener $plugin
|
||||
*/
|
||||
public function registerPlugin(Swift_Events_EventListener $plugin)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user