@@ -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