Skip to content

Commit 044b189

Browse files
committed
minor #17752 [DependencyInjection] Fix missing quotes on service subscribers (SVillette)
This PR was merged into the 6.2 branch. Discussion ---------- [DependencyInjection] Fix missing quotes on service subscribers ## Description On the [service subscribers & locators doc](https://symfony.com/doc/current/service_container/service_subscribers_locators.html#add-dependency-injection-attributes), there was missing quotes on the second parameter of `Symfony\Contracts\Service\Attribute\SubscribedService` constructor Commits ------- 6ec7a40 Fixed missing quotes on service subscribers
2 parents a7dbad2 + 6ec7a40 commit 044b189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/service_subscribers_locators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ This is done by having ``getSubscribedServices()`` return an array of
279279
new SubscribedService('logger', LoggerInterface::class, attributes: new Autowire(service: 'monolog.logger.event')),
280280

281281
// can event use parameters
282-
new SubscribedService('env', string, attributes: new Autowire('%kernel.environment%')),
282+
new SubscribedService('env', 'string', attributes: new Autowire('%kernel.environment%')),
283283

284284
// Target
285285
new SubscribedService('event.logger', LoggerInterface::class, attributes: new Target('eventLogger')),

0 commit comments

Comments
 (0)