diff --git a/service_container.rst b/service_container.rst index 44b2d1ee4db..1febe0cf8cc 100644 --- a/service_container.rst +++ b/service_container.rst @@ -665,6 +665,7 @@ You can also use the ``bind`` keyword to bind specific arguments by name or type # optionally you can define both the name and type of the argument to match string $adminEmail: 'manager@example.com' Psr\Log\LoggerInterface $requestLogger: '@monolog.logger.request' + iterable $rules: !tagged_iterator app.foo.rule # ... @@ -695,6 +696,10 @@ You can also use the ``bind`` keyword to bind specific arguments by name or type type="service" id="monolog.logger.request" /> + @@ -728,6 +733,7 @@ You can also use the ``bind`` keyword to bind specific arguments by name or type // optionally you can define both the name and type of the argument to match ->bind('string $adminEmail', 'manager@example.com') ->bind(LoggerInterface::class.' $requestLogger', ref('monolog.logger.request')) + ->bind('iterable $rules', tagged_iterator('app.foo.rule')) ; // ... pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy