We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44b8d03 commit d131464Copy full SHA for d131464
service_container/service_subscribers_locators.rst
@@ -300,15 +300,6 @@ argument of type ``service_locator``:
300
])]);
301
};
302
303
-.. versionadded:: 4.2
304
-
305
- The ability to add services without specifying an array key was introduced
306
- in Symfony 4.2.
307
308
309
310
- The ``service_locator`` argument type was introduced in Symfony 4.2.
311
312
As shown in the previous sections, the constructor of the ``CommandBus`` class
313
must type-hint its argument with ``ContainerInterface``. Then, you can get any of
314
the service locator services via their ID (e.g. ``$this->locator->get('App\FooCommand')``).
0 commit comments