File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -665,6 +665,7 @@ You can also use the ``bind`` keyword to bind specific arguments by name or type
665
665
# optionally you can define both the name and type of the argument to match
666
666
string $adminEmail : ' manager@example.com'
667
667
Psr\Log\LoggerInterface $requestLogger : ' @monolog.logger.request'
668
+ iterable $rules : !tagged_iterator app.foo.rule
668
669
669
670
# ...
670
671
@@ -695,6 +696,10 @@ You can also use the ``bind`` keyword to bind specific arguments by name or type
695
696
type =" service"
696
697
id =" monolog.logger.request"
697
698
/>
699
+ <bind key =" iterable $rules"
700
+ type =" tagged_iterator"
701
+ tag =" app.foo.rule"
702
+ />
698
703
</defaults >
699
704
700
705
<!-- ... -->
@@ -728,6 +733,7 @@ You can also use the ``bind`` keyword to bind specific arguments by name or type
728
733
// optionally you can define both the name and type of the argument to match
729
734
->bind('string $adminEmail', 'manager@example.com')
730
735
->bind(LoggerInterface::class.' $requestLogger', ref('monolog.logger.request'))
736
+ ->bind('iterable $rules', tagged_iterator('app.foo.rule'))
731
737
;
732
738
733
739
// ...
You can’t perform that action at this time.
0 commit comments