diff --git a/service_container.rst b/service_container.rst index 2ceaca349f1..5151afab455 100644 --- a/service_container.rst +++ b/service_container.rst @@ -240,7 +240,7 @@ be its class name in this case:: use AppBundle\Service\MessageGenerator; // accessing services like this only works if you extend Controller - class ProductController extend Controller + class ProductController extends Controller { public function newAction() { @@ -1002,4 +1002,4 @@ Learn more /service_container/* .. _`service-oriented architecture`: https://en.wikipedia.org/wiki/Service-oriented_architecture -.. _`Symfony Standard Edition (version 3.3) services.yml`: https://github.com/symfony/symfony-standard/blob/master/app/config/services.yml \ No newline at end of file +.. _`Symfony Standard Edition (version 3.3) services.yml`: https://github.com/symfony/symfony-standard/blob/master/app/config/services.yml