diff --git a/service_container/service_subscribers_locators.rst b/service_container/service_subscribers_locators.rst index ec57eb8f12b..da5cb415800 100644 --- a/service_container/service_subscribers_locators.rst +++ b/service_container/service_subscribers_locators.rst @@ -792,7 +792,7 @@ get the value used to index the services: class CommandBus { public function __construct( - #[TaggedLocator('app.handler', 'defaultIndexMethod: 'getLocatorKey')] + #[TaggedLocator('app.handler', defaultIndexMethod: 'getLocatorKey')] private ContainerInterface $locator, ) { }