diff --git a/service_container/configurators.rst b/service_container/configurators.rst index 1ade37244c3..7cf3f4e09c5 100644 --- a/service_container/configurators.rst +++ b/service_container/configurators.rst @@ -181,10 +181,10 @@ all the classes are already loaded as services. All you need to do is specify th // override the services to set the configurator // In versions earlier to Symfony 5.1 the service() function was called ref() $services->set(NewsletterManager::class) - ->configurator(service(EmailConfigurator::class), 'configure'); + ->configurator([service(EmailConfigurator::class), 'configure']); $services->set(GreetingCardManager::class) - ->configurator(service(EmailConfigurator::class), 'configure'); + ->configurator([service(EmailConfigurator::class), 'configure']); }; .. _configurators-invokable: