Add example how to bind arguments to the services.yaml (#1119)

This commit is contained in:
Alexander Schranz
2022-08-18 10:18:41 +02:00
committed by GitHub
parent b3395a2477
commit 09648ca9a6
@@ -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