Skip to content

Commit 65e2bbc

Browse files
authored
add service binding to argument name example
1 parent 5dd31d2 commit 65e2bbc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

service_container.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,10 @@ You can also use the ``bind`` keyword to bind specific arguments by name or type
638638
# pass this value to any $adminEmail argument for any service
639639
# that's defined in this file (including controller arguments)
640640
$adminEmail: '[email protected]'
641+
642+
# pass this service to any $requestLogger argument for any
643+
# service that's defined in this file
644+
$requestLogger: '@monolog.logger.request'
641645
642646
# pass this service for any LoggerInterface type-hint for any
643647
# service that's defined in this file

0 commit comments

Comments
 (0)