From 09648ca9a69b8a2e3e4e9ce5ad46f7ed9a86777e Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Thu, 18 Aug 2022 10:18:41 +0200 Subject: [PATCH] Add example how to bind arguments to the services.yaml (#1119) --- symfony/framework-bundle/6.2/config/services.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/symfony/framework-bundle/6.2/config/services.yaml b/symfony/framework-bundle/6.2/config/services.yaml index 2d6a76f9..c7851791 100644 --- a/symfony/framework-bundle/6.2/config/services.yaml +++ b/symfony/framework-bundle/6.2/config/services.yaml @@ -10,6 +10,11 @@ services: _defaults: autowire: true # Automatically injects dependencies in your services. autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. + # Binding arguments by name or type + # https://symfony.com/doc/current/service_container.html#binding-arguments-by-name-or-type + #bind: + # 'bool $isDebug': '%kernel.debug%' + # makes classes in src/ available to be used as services # this creates a service per class whose id is the fully-qualified class name