From 0926a0dd32b978f96189cbf0daa8e68d4bb041c1 Mon Sep 17 00:00:00 2001 From: Josh Freeman Date: Thu, 7 Dec 2017 13:01:06 +0000 Subject: [PATCH] Update console.rst Parent constructor call is required when using auto-wired services in a command constructor, without it you will receive the error: ``` There are no commands defined in the "app" namespace. ``` --- console.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/console.rst b/console.rst index af1881f2c5d..57eed233329 100644 --- a/console.rst +++ b/console.rst @@ -186,6 +186,8 @@ as a service, you can use normal dependency injection. Imagine you have a public function __construct(UserManager $userManager) { $this->userManager = $userManager; + + parent::__construct(); } // ...