Add Mailer send and debug commands

by @fritzmg

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/43687/040acda4c56e8ac2d2f5d579f0092b3e1f8d07c2/cs.diff | patch -p0
diff -ru src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
--- src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php	2022-06-23 07:49:33.016503743 +0000
+++ src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php	2022-06-23 07:50:24.538597755 +0000
@@ -970,7 +970,7 @@
             if (isset($workflow['marking_store']['type'])) {
                 $markingStoreDefinition = new ChildDefinition('workflow.marking_store.method');
                 $markingStoreDefinition->setArguments([
-                    'state_machine' === $type, //single state
+                    'state_machine' === $type, // single state
                     $workflow['marking_store']['property'],
                 ]);
             } elseif (isset($workflow['marking_store']['service'])) {
diff -ru src/Symfony/Bundle/FrameworkBundle/Tests/Command/MailerSendCommandTest.php src/Symfony/Bundle/FrameworkBundle/Tests/Command/MailerSendCommandTest.php
--- src/Symfony/Bundle/FrameworkBundle/Tests/Command/MailerSendCommandTest.php	2022-06-23 07:49:33.400511897 +0000
+++ src/Symfony/Bundle/FrameworkBundle/Tests/Command/MailerSendCommandTest.php	2022-06-23 07:50:26.432637973 +0000
@@ -34,8 +34,8 @@
             ->expects($this->once())
             ->method('send')
             ->with(self::callback(static function (Email $message) use ($from, $to, $subject, $body): bool {
-                return 
-                    $message->getFrom()[0]->getAddress() === $from && 
+                return
+                    $message->getFrom()[0]->getAddress() === $from &&
                     $message->getTo()[0]->getAddress() === $to &&
                     $message->getSubject() === $subject &&
                     $message->getTextBody() === $body

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/43687/040acda4c56e8ac2d2f5d579f0092b3e1f8d07c2/typos.diff | patch -p0
diff -ru src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
--- src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php	2022-06-23 07:49:33.016503743 +0000
+++ src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php	2022-06-23 07:50:27.293656256 +0000
@@ -2542,7 +2542,7 @@
             GoogleChatTransportFactory::class => 'notifier.transport_factory.google-chat',
             InfobipTransportFactory::class => 'notifier.transport_factory.infobip',
             IqsmsTransportFactory::class => 'notifier.transport_factory.iqsms',
-            KazInfoTehTransportFactory::class => 'notifier.transport_factory.kaz-info-teh',
+            KazInfoTehTransportFactory::class => 'notifier.transport_factory.kaz-info-the',
             LightSmsTransportFactory::class => 'notifier.transport_factory.light-sms',
             LinkedInTransportFactory::class => 'notifier.transport_factory.linked-in',
             MailjetNotifierTransportFactory::class => 'notifier.transport_factory.mailjet',

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting

0
Usage of void in test files

0
Use ::class whenever possible

0
Deprecation Messages