Skip to content

Commit 778d6dc

Browse files
committed
Fix deprecation in MakeAdmin
1 parent ea46509 commit 778d6dc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Maker/MakeAdmin.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@ public static function getCommandName(): string
4646
return 'admin:generate-admin';
4747
}
4848

49-
public function configureCommand(Command $command, InputConfiguration $inputConfig): void
49+
public static function getCommandDescription(): string
50+
{
51+
return 'Generate new admin pages given a model';
52+
}
53+
54+
public function configureCommand(Command $command, InputConfiguration $inputConfig): void
5055
{
5156
$command
52-
->setDescription('Generate new admin pages given a model')
5357
->addArgument('namespace', InputArgument::OPTIONAL, 'The namespace to place the admin', 'App')
5458
->addArgument('sf4', InputArgument::OPTIONAL, 'Whether to use the Symfony 4 directory structure or the old bundle structure', 'Yes')
5559
->addArgument('orm', InputArgument::OPTIONAL, 'The orm to use (propel, doctrine, doctrine_odm)', 'doctrine')

0 commit comments

Comments
 (0)