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

Skip to content

Commit a92fbf5

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ class MessageDataCollector extends DataCollector
4141
*/
4242
public function __construct(ContainerInterface $container, $isSpool)
4343
{
44+
trigger_error(
45+
'Symfony\Bridge\Swiftmailer\DataCollector\MessageDataCollector class'
46+
.' is deprecated since version 2.4 and will be removed in 3.0. Use the'
47+
.' Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector'
48+
.' class from SwiftmailerBundle instead. The SwiftmailerBundle package'
49+
.' can be downloaded with Composer. See https://packagist.org/packages/symfony/swiftmailer-bundle.',
50+
E_USER_DEPRECATED
51+
);
52+
4453
$this->container = $container;
4554
$this->isSpool = $isSpool;
4655
}

0 commit comments

Comments
 (0)
0