Skip to content

Commit ea07ef1

Browse files
mimol91weaverryan
mimol91
authored andcommitted
Update commands_as_services.rst
Missing parent construct
1 parent 512ae2c commit ea07ef1

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)