From 7b3b9fce81ba99a1731066e5b94704b71062b985 Mon Sep 17 00:00:00 2001 From: Maxime Veber Date: Fri, 1 Jun 2018 11:13:04 +0200 Subject: [PATCH] Fix wrong place of parent constructor call Calling parent constructor after doing stuff in the overrided constructor is a bad habit. --- console.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/console.rst b/console.rst index 7b7fc4dc79c..e5536c10c49 100644 --- a/console.rst +++ b/console.rst @@ -246,9 +246,9 @@ as a service, you can use normal dependency injection. Imagine you have a public function __construct(UserManager $userManager) { - $this->userManager = $userManager; - parent::__construct(); + + $this->userManager = $userManager; } // ...