8000 Apply suggestions from code review · symfony/symfony@d5eb5a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit d5eb5a6

Browse files
Apply suggestions from code review
Co-authored-by: Fabien Potencier <fabien@potencier.org>
1 parent eea246e commit d5eb5a6

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2250,7 +2250,7 @@ private function addMailerSection(ArrayNodeDefinition $rootNode, callable $enabl
22502250
->scalarNode('domain')->defaultValue('')->end()
22512251
->scalarNode('select')->defaultValue('')->end()
22522252
->scalarNode('passphrase')
2253-
->info('A passphrase of the private key if any')
2253+
->info('The private key passphrase')
22542254
->defaultValue('')
22552255
->end()
22562256
->arrayNode('options')
@@ -2264,7 +2264,7 @@ private function addMailerSection(ArrayNodeDefinition $rootNode, callable $enabl
22642264
->arrayNode('smime_signer')
22652265
->addDefaultsIfNotSet()
22662266
->canBeEnabled()
2267-
->info('SMIME signer configuration')
2267+
->info('S/MIME signer configuration')
22682268
->children()
22692269
->scalarNode('key')
22702270
->info('Path to key (in PEM format)')
@@ -2277,7 +2277,7 @@ private function addMailerSection(ArrayNodeDefinition $rootNode, callable $enabl
22772277
->cannotBeEmpty()
22782278
->end()
22792279
->scalarNode('passphrase')
2280-
->info('A passphrase of the private key if any')
2280+
->info('The private key passphrase')
22812281
->defaultNull()
22822282
->end()
22832283
->scalarNode('extra_certificates')->defaultNull()->end()
@@ -2287,7 +2287,7 @@ private function addMailerSection(ArrayNodeDefinition $rootNode, callable $enabl
22872287
->arrayNode('smime_encrypter')
22882288
->addDefaultsIfNotSet()
22892289
->canBeEnabled()
2290-
->info('SMIME encrypter configuration')
2290+
->info('S/MIME encrypter configuration')
22912291
->children()
22922292
->scalarNode('certificate')
22932293
->info('Path to certificate (in PEM format without the `file://` prefix)')

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2842,7 +2842,7 @@ private function registerMailerConfiguration(array $config, ContainerBuilder $co
28422842

28432843
if ($config['dkim_signer']['enabled']) {
28442844
if (!class_exists(DkimSignedMessageListener::class)) {
2845-
throw new LogicException('DKIM signed messages support cannot be enabled as the component is not up to date. Update the symfony/mailer.');
2845+
throw new LogicException('DKIM signed messages support cannot be enabled as this version of the Mailer component does not support it.');
28462846
}
28472847
$dkimSigner = $container->getDefinition('mailer.dkim_signer');
28482848
$dkimSigner->setArgument(0, $config['dkim_signer']['key']);
@@ -2857,7 +2857,7 @@ private function registerMailerConfiguration(array $config, ContainerBuilder $co
28572857

28582858
if ($config['smime_signer']['enabled']) {
28592859
if (!class_exists(SmimeSignedMessageListener::class)) {
2860-
throw new LogicException('SMIME signed messages support cannot be enabled as the component is not up to date. Update the symfony/mailer.');
2860+
throw new LogicException('SMIME signed messages support cannot be enabled as this version of the Mailer component does not support it.');
28612861
}
28622862
$smimeSigner = $container->getDefinition('mailer.smime_signer');
28632863
$smimeSigner->setArgument(0, $config['smime_signer']['key']);
@@ -2872,7 +2872,7 @@ private function registerMailerConfiguration(array $config, ContainerBuilder $co
28722872

28732873
if ($config['smime_encrypter']['enabled']) {
28742874
if (!class_exists(SmimeEncryptedMessageListener::class)) {
2875-
throw new LogicException('SMIME encrypted messages support cannot be enabled as the component is not up to date. Update the symfony/mailer.');
2875+
throw new LogicException('S/MIME encrypted messages support cannot be enabled as this version of the Mailer component does not support it.');
28762876
}
28772877
$smimeDecrypter = $container->getDefinition('mailer.smime_encrypter');
28782878
$smimeDecrypter->setArgument(0, $config['smime_encrypter']['certificate']);

src/Symfony/Component/Mailer/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CHANGELOG
77
* Add DSN param `retry_period` to override default email transport retry period
88
* Add `Dsn::getBooleanOption()`
99
* Add DSN param `source_ip` to allow binding to a (specific) IPv4 or IPv6 address.
10-
* Enable the mailer to configure DKIM or SMIME signer
10+
* Add `DkimSignedMessageListener`, `SmimeEncryptedMessageListener`, and `SmimeSignedMessageListener`
1111

1212
7.2
1313
---

src/Symfony/Component/Mailer/EventListener/DkimSignedMessageListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\Component\Mime\Message;
1818

1919
/**
20-
* Signs the message.
20+
* Signs messages using DKIM.
2121
*
2222
* @author Elías Fernández
2323
*/

src/Symfony/Component/Mailer/EventListener/SmimeEncryptedMessageListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\Component\Mime\Message;
1818

1919
/**
20-
* Encrypts the message.
20+
* Encrypts messages using S/MIME.
2121
*
2222
* @author Elías Fernández
2323
*/

src/Symfony/Component/Mailer/EventListener/SmimeSignedMessageListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\Component\Mime\Message;
1818

1919
/**
20-
* Signs the message.
20+
* Signs messages using S/MIME.
2121
*
2222
* @author Elías Fernández
2323
*/

0 commit comments

Comments
 (0)
0