Skip to content

Commit 2ebabfb

Browse files
committed
bug symfony#3792 Update commands_as_services.rst (mimol91)
This PR was submitted for the master branch but it was merged into the 2.4 branch instead (closes symfony#3792). Discussion ---------- Update commands_as_services.rst Missing parent construct Commits ------- a28de44 Update commands_as_services.rst
2 parents 512ae2c + ea07ef1 commit 2ebabfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cookbook/console/commands_as_services.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ have some ``NameRepository`` service that you'll use to get your default value::
9090

9191
public function __construct(NameRepository $nameRepository)
9292
{
93+
parent::__construct();
94+
9395
$this->nameRepository = $nameRepository;
9496
}
9597

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy