8000 minor #13056 [2.7] [Bridge] [Swiftmailer] adds deprecation notice on … · symfony/symfony@ff91d30 · GitHub
[go: up one dir, main page]

Skip to content

Commit ff91d30

Browse files
committed
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.
2 parents 6451384 + c003bb1 commit ff91d30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Bridge/Swiftmailer/DataCollector/MessageDataCollector.php

Lines changed: 2 additions & 0 deletions
< 745E /colgroup>
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Bridge\Swiftmailer\DataCollector;
1313

14+
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);
15+
1416
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
1517
use Symfony\Component\HttpFoundation\Request;
1618
use Symfony\Component\HttpFoundation\Response;

0 commit comments

Comments
 (0)
0