Skip to content

Commit 32dfcbd

Browse files
PhilETaylorjaviereguiluz
authored andcommitted
import function env to avoid fatal error if copying docs
1 parent d5bbc28 commit 32dfcbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mailer.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
5454
.. code-block:: php
5555
5656
// config/packages/mailer.php
57+
use function Symfony\Component\DependencyInjection\Loader\Configurator\env;
5758
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
5859
5960
return static function (ContainerConfigurator $containerConfigurator): void {
@@ -1193,6 +1194,7 @@ This can be configured by replacing the ``dsn`` configuration entry with a
11931194
.. code-block:: php
11941195
11951196
// config/packages/mailer.php
1197+
use function Symfony\Component\DependencyInjection\Loader\Configurator\env;
11961198
use Symfony\Config\FrameworkConfig;
11971199
11981200
return static function (FrameworkConfig $framework) {

0 commit comments

Comments
 (0)