File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -471,8 +471,7 @@ Custom Environment Variable Processors
471471
472472It's also possible to add your own processors for environment variables. First,
473473create a class that implements
474- :class: `Symfony\\ Component\\ DependencyInjection\\ EnvVarProcessorInterface ` and
475- then, define a service for that class::
474+ :class: `Symfony\\ Component\\ DependencyInjection\\ EnvVarProcessorInterface `::
476475
477476 use Symfony\Component\DependencyInjection\EnvVarProcessorInterface;
478477
@@ -493,6 +492,12 @@ then, define a service for that class::
493492 }
494493 }
495494
495+ To enable the new processor in the app, register it as a service and
496+ :doc: `tag it </service_container/tags >` with the ``container.env_var_processor ``
497+ tag. If you're using the
498+ :ref: `default services.yaml configuration <service-container-services-load-example >`,
499+ this is already done for you, thanks to :ref: `autoconfiguration <services-autoconfigure >`.
500+
496501Constants
497502---------
498503
You can’t perform that action at this time.
0 commit comments