Skip to content

Commit 74ee5c7

Browse files
committed
Tweak
1 parent c658aca commit 74ee5c7

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

service_container.rst

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,17 +1284,13 @@ When using PHP closures to configure your services, it is possible to automatica
12841284
inject the current environment value by adding a string argument named ``$env`` to
12851285
the closure::
12861286

1287-
.. configuration-block::
1288-
1289-
.. code-block:: php
1287+
// config/packages/my_config.php
1288+
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
12901289

1291-
// config/packages/my_config.php
1292-
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
1293-
1294-
return function(ContainerConfigurator $configurator, string $env) {
1295-
// `$env` is automatically filled in, you can configure your
1296-
// services depending on which environment you're on
1297-
};
1290+
return function(ContainerConfigurator $configurator, string $env) {
1291+
// `$env` is automatically filled in, so you can configure your
1292+
// services depending on which environment you're on
1293+
};
12981294

12991295
Learn more
13001296
----------

0 commit comments

Comments
 (0)