File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -512,8 +512,7 @@ Custom Environment Variable Processors
512
512
513
513
It's also possible to add your own processors for environment variables. First,
514
514
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 `::
517
516
518
517
use Symfony\Component\DependencyInjection\EnvVarProcessorInterface;
519
518
@@ -534,6 +533,12 @@ then, define a service for that class::
534
533
}
535
534
}
536
535
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
+
537
542
Constants
538
543
---------
539
544
You can’t perform that action at this time.
0 commit comments