minor #13056 [2.7] [Bridge] [Swiftmailer] adds deprecation notice on MessageDataCollector class. (hhamon)

This PR was merged into the 2.7 branch.

Discussion
----------

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

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~

Commits
-------

c003bb1 [Bridge] [Swiftmailer] adds deprecation notice on MessageDataCollector class.
This commit is contained in:
Fabien Potencier 2014-12-21 11:21:47 +01:00
commit ff91d306ba

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;