diff --git a/CHANGELOG-2.1.md b/CHANGELOG-2.1.md index dc602d689d6e..68ad3f39cf0b 100644 --- a/CHANGELOG-2.1.md +++ b/CHANGELOG-2.1.md @@ -33,6 +33,11 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c * added a validator for the user password +### SwiftmailerBundle + + * moved the data collector to the bridge + * replaced MessageLogger class with the one from Swiftmailer 4.1.3 + ### WebProfilerBundle * added a routing panel diff --git a/src/Symfony/Bundle/SwiftmailerBundle/Logger/MessageLogger.php b/src/Symfony/Bundle/SwiftmailerBundle/Logger/MessageLogger.php deleted file mode 100644 index 62d72b862a0d..000000000000 --- a/src/Symfony/Bundle/SwiftmailerBundle/Logger/MessageLogger.php +++ /dev/null @@ -1,81 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Bundle\SwiftmailerBundle\Logger; - -use Symfony\Component\EventDispatcher\Event; - -/** - * MessageLogger. - * - * @author Fabien Potencier - * @author Clément JOBEILI - */ -class MessageLogger implements \Swift_Events_SendListener -{ - /** - * @var array - */ - protected $messages; - - public function __construct() - { - $this->messages = array(); - } - - /** - * Get the message list - * - * @return array - */ - public function getMessages() - { - return $this->messages; - } - - /** - * Get the message count - * - * @return int count - */ - public function countMessages() - { - return count($this->messages); - } - - /** - * Empty the message list - * - */ - public function clear() - { - $this->messages = array(); - } - - /** - * Invoked immediately before the Message is sent. - * - * @param \Swift_Events_SendEvent $evt - */ - public function beforeSendPerformed(\Swift_Events_SendEvent $evt) - { - $this->messages[] = clone $evt->getMessage(); - } - - /** - * Invoked immediately after the Message is sent. - * - * @param \Swift_Events_SendEvent $evt - */ - public function sendPerformed(\Swift_Events_SendEvent $evt) - { - } -} diff --git a/src/Symfony/Bundle/SwiftmailerBundle/Resources/config/swiftmailer.xml b/src/Symfony/Bundle/SwiftmailerBundle/Resources/config/swiftmailer.xml index b377adb281a8..57753bf65d3b 100644 --- a/src/Symfony/Bundle/SwiftmailerBundle/Resources/config/swiftmailer.xml +++ b/src/Symfony/Bundle/SwiftmailerBundle/Resources/config/swiftmailer.xml @@ -14,7 +14,7 @@ Swift_Plugins_RedirectingPlugin Swift_Plugins_ImpersonatePlugin - Symfony\Bundle\SwiftmailerBundle\Logger\MessageLogger + Swift_Plugins_MessageLogger Swift_Plugins_AntiFloodPlugin 99 0 diff --git a/vendors.php b/vendors.php index 646ba4ff4619..171c3e99e9f7 100755 --- a/vendors.php +++ b/vendors.php @@ -30,7 +30,7 @@ array('doctrine-dbal', 'http://github.com/doctrine/dbal.git', 'origin/master'), array('doctrine-common', 'http://github.com/doctrine/common.git', 'origin/master'), array('monolog', 'http://github.com/Seldaek/monolog.git', '1.0.1'), - array('swiftmailer', 'http://github.com/swiftmailer/swiftmailer.git', 'v4.1.2'), + array('swiftmailer', 'http://github.com/swiftmailer/swiftmailer.git', 'origin/master'), array('twig', 'http://github.com/fabpot/Twig.git', 'origin/master'), );