Skip to content

Commit

Permalink
Fix deprecation in MakeAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-93 committed Feb 15, 2023
1 parent ea46509 commit 778d6dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Maker/MakeAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ public static function getCommandName(): string
return 'admin:generate-admin';
}

public function configureCommand(Command $command, InputConfiguration $inputConfig): void
public static function getCommandDescription(): string
{
return 'Generate new admin pages given a model';
}

public function configureCommand(Command $command, InputConfiguration $inputConfig): void
{
$command
->setDescription('Generate new admin pages given a model')
->addArgument('namespace', InputArgument::OPTIONAL, 'The namespace to place the admin', 'App')
->addArgument('sf4', InputArgument::OPTIONAL, 'Whether to use the Symfony 4 directory structure or the old bundle structure', 'Yes')
->addArgument('orm', InputArgument::OPTIONAL, 'The orm to use (propel, doctrine, doctrine_odm)', 'doctrine')
Expand Down

0 comments on commit 778d6dc

Please sign in to comment.