Skip to content

Commit 09648ca

Browse files
Add example how to bind arguments to the services.yaml (#1119)
1 parent b3395a2 commit 09648ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

symfony/framework-bundle/6.2/config/services.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ services:
1010
_defaults:
1111
autowire: true # Automatically injects dependencies in your services.
1212
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
13+
# Binding arguments by name or type
14+
# https://symfony.com/doc/current/service_container.html#binding-arguments-by-name-or-type
15+
#bind:
16+
# 'bool $isDebug': '%kernel.debug%'
17+
1318

1419
# makes classes in src/ available to be used as services
1520
# this creates a service per class whose id is the fully-qualified class name

0 commit comments

Comments
 (0)