From b9b45676ab035a69dc52ba8c3d80be84b76a6284 Mon Sep 17 00:00:00 2001 From: Mathias Geat Date: Thu, 1 Jun 2017 11:04:46 +0200 Subject: [PATCH] Fix method reference (`getSubscribedServices()` instead of `getSubscribedEvents()`) --- controller/service.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/service.rst b/controller/service.rst index d4c7ae13c32..6ee5faeaf0b 100644 --- a/controller/service.rst +++ b/controller/service.rst @@ -130,7 +130,7 @@ The best way to see how to replace base ``Controller`` convenience methods is to look at the `ControllerTrait`_ that holds its logic. If you want to know what type-hints to use for each service, see the -``getSubscribedEvents()`` method in `AbstractController`_. +``getSubscribedServices()`` method in `AbstractController`_. .. _`Controller class source code`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php .. _`base Controller class`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php