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
471
471
472
472
It's also possible to add your own processors for environment variables. First,
473
473
create 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 `::
476
475
477
476
use Symfony\Component\DependencyInjection\EnvVarProcessorInterface;
478
477
@@ -493,6 +492,12 @@ then, define a service for that class::
493
492
}
494
493
}
495
494
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
+
496
501
Constants
497
502
---------
498
503
You can’t perform that action at this time.
0 commit comments