8000 Merge branch '4.1' · symfony/symfony-docs@d056970 · GitHub
[go: up one dir, main page]

Skip to content

Commit d056970

Browse files
committed
Merge branch '4.1'
* 4.1: Minor reword of AbstractController vs Controller Mention the service tag of env processors
2 parents 7c6922c + d02a1e8 commit d056970

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

configuration/external_parameters.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,7 @@ Custom Environment Variable Processors
512512

513513
It's also possible to add your own processors for environment variables. First,
514514
create a class that implements
515-
:class:`Symfony\\Component\\DependencyInjection\\EnvVarProcessorInterface` and
516-
then, define a service for that class::
515+
:class:`Symfony\\Component\\DependencyInjection\\EnvVarProcessorInterface`::
517516

518517
use Symfony\Component\DependencyInjection\EnvVarProcessorInterface;
519518

@@ -534,6 +533,12 @@ then, define a service for that class::
534533
}
535534
}
536535

536+
To enable the new processor in the app, register it as a service and
537+
:doc:`tag it </service_container/tags>` with the ``container.env_var_processor``
538+
tag. If you're using the
539+
:ref:`default services.yaml configuration <service-container-services-load-example>`,
540+
this is already done for you, thanks to :ref:`autoconfiguration <services-autoconfigure>`.
541+
537542
Constants
538543
---------
539544

0 commit comments

Comments
 (0)
0