Skip to content

Commit

Permalink
Update commands_as_services.rst
Browse files Browse the repository at this point in the history
Missing parent construct
  • Loading branch information
mimol91 authored and weaverryan committed Apr 21, 2014
1 parent 512ae2c commit ea07ef1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cookbook/console/commands_as_services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ have some ``NameRepository`` service that you'll use to get your default value::

public function __construct(NameRepository $nameRepository)
{
parent::__construct();
$this->nameRepository = $nameRepository;
}

Expand Down

0 comments on commit ea07ef1

Please sign in to comment.