[Bridge] [Swiftmailer] adds deprecation notice on MessageDataCollector class.

This commit is contained in:
Hugo Hamon 2014-12-20 23:05:08 +01:00
parent 6451384426
commit c003bb10a9

View File

@ -11,6 +11,8 @@
namespace Symfony\Bridge\Swiftmailer\DataCollector;
trigger_error(__CLASS__.' class is deprecated since version 2.4 and will be removed in 3.0. Use the Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector class from SwiftmailerBundle instead. Require symfony/swiftmailer-bundle package to download SwiftmailerBundle with Composer.', E_USER_DEPRECATED);
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;