Skip to content

Commit 67e0e9f

Browse files
committed
feature #1355 Create empty-ready construct on command generate (Kristijan Stipić)
This PR was merged into the 1.0-dev branch. Discussion ---------- Create empty-ready construct on command generate I understand that this was not put on purpose, but I believe that it would be useful for most people, because when generating a lot of commands, in 99% of cases I have to manually write this generic code to be able to do dependency injection Commits ------- ec9ad72 Create empty-ready construct on command generate
2 parents 79c710b + ec9ad72 commit 67e0e9f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Resources/skeleton/command/Command.tpl.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
)]
1111
class <?= $class_name; ?> extends Command
1212
{
13+
public function __construct()
14+
{
15+
parent::__construct();
16+
}
17+
1318
protected function configure(): void
1419
{
1520
$this

0 commit comments

Comments
 (0)