We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7a783d8 + a740541 commit d1b3020Copy full SHA for d1b3020
service_container/service_subscribers_locators.rst
@@ -65,7 +65,7 @@ through a **Service Locator**, a separate lazy-loaded container.
65
Defining a Service Subscriber
66
-----------------------------
67
68
-First, turn ``CommandBus`` into an implementation of :class:`Symfony\\Component\\DependencyInjection\\ServiceSubscriberInterface`.
+First, turn ``CommandBus`` into an implementation of :class:`Symfony\\Contracts\\Service\\ServiceSubscriberInterface`.
69
Use its ``getSubscribedServices()`` method to include as many services as needed
70
in the service subscriber and change the type hint of the container to
71
a PSR-11 ``ContainerInterface``::
0 commit comments