From a6fc066c52f865cfc54e23ea35a4018564482e4a Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 8 Dec 2017 17:47:09 +0100 Subject: [PATCH] Fixed the code sample of commands using services --- console.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/console.rst b/console.rst index af1881f2c5d..bc4e7824862 100644 --- a/console.rst +++ b/console.rst @@ -186,6 +186,9 @@ as a service, you can use normal dependency injection. Imagine you have a public function __construct(UserManager $userManager) { $this->userManager = $userManager; + + // you *must* call the parent constructor + parent::__construct(); } // ...