Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a51f4a0

Browse filesBrowse files
committed
Minor tweaks
1 parent a76a651 commit a51f4a0
Copy full SHA for a51f4a0

File tree

1 file changed

+8
-6
lines changed
Filter options

1 file changed

+8
-6
lines changed

‎mailer.rst

Copy file name to clipboardExpand all lines: mailer.rst
+8-6Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ encrypter that automatically applies to all outgoing messages:
15321532
framework:
15331533
mailer:
15341534
smime_encrypter:
1535-
repository: app.my_smime_encrypter
1535+
repository: App\Security\LocalFileCertificateRepository
15361536
15371537
.. code-block:: xml
15381538
@@ -1549,7 +1549,7 @@ encrypter that automatically applies to all outgoing messages:
15491549
<framework:config>
15501550
<framework:mailer>
15511551
<framework:smime-encrypter>
1552-
<framework:repository>app.my_smime_encrypter</framework:repository>
1552+
<framework:repository>App\Security\LocalFileCertificateRepository</framework:repository>
15531553
</framework:smime-encrypter>
15541554
</framework:mailer>
15551555
</framework:config>
@@ -1558,17 +1558,20 @@ encrypter that automatically applies to all outgoing messages:
15581558
.. code-block:: php
15591559
15601560
// config/packages/mailer.php
1561+
use App\Security\LocalFileCertificateRepository;
15611562
use Symfony\Config\FrameworkConfig;
15621563
15631564
return static function (FrameworkConfig $framework): void {
15641565
$mailer = $framework->mailer();
15651566
$mailer->smimeEncrypter()
1566-
->repository('app.my_smime_encrypter')
1567+
->repository(LocalFileCertificateRepository::class)
15671568
;
15681569
};
15691570
1570-
The ``repository`` option must be a service ID that implements
1571-
:class:`Symfony\\Component\\Mailer\\EventListener\\SmimeCertificateRepositoryInterface`::
1571+
The ``repository`` option is the ID of a service that implements
1572+
:class:`Symfony\\Component\\Mailer\\EventListener\\SmimeCertificateRepositoryInterface`.
1573+
This interface requires only one method: ``findCertificatePathFor()``, which must
1574+
return the file path to the certificate associated with the given email address::
15721575

15731576
namespace App\Security;
15741577

@@ -1591,7 +1594,6 @@ The ``repository`` option must be a service ID that implements
15911594
}
15921595
}
15931596

1594-
15951597
.. versionadded:: 7.3
15961598

15971599
Global message encryption configuration was introduced in Symfony 7.3.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.