8000 [Bridge] [Swiftmailer] adds deprecation notice on MessageDataCollecto… · symfony/symfony@c003bb1 · GitHub
[go: up one dir, main page]

Skip to content

Commit c003bb1

Browse files
author
Hugo Hamon
committed
[Bridge] [Swiftmailer] adds deprecation notice on MessageDataCollector class.
1 parent 6451384 commit c003bb1

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
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