Skip to content

Commit

Permalink
Fix deprecation using Symfony 6.1 (theofidry#23)
Browse files Browse the repository at this point in the history
Overriding "$defaultName" is deprecated since Symfony 6.1
  • Loading branch information
franmomu authored Jul 3, 2022
1 parent 016ff23 commit 67e5773
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use function sprintf;
use Symfony\Bundle\FrameworkBundle\Console\Application as FrameworkBundleConsoleApplication;
use Symfony\Component\Console\Application as ConsoleApplication;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Input\InputInterface;
Expand All @@ -32,10 +33,9 @@
/**
* Command used to load the fixtures.
*/
#[AsCommand(name: 'hautelook:fixtures:load', description: 'Load data fixtures to your database.')]
class DoctrineOrmLoadDataFixturesCommand extends Command
{
protected static $defaultName = 'hautelook:fixtures:load';

private ManagerRegistry $doctrine;
private AliceBundleLoaderInterface $loader;

Expand All @@ -53,7 +53,6 @@ public function __construct(
protected function configure(): void
{
$this
->setAliases([self::$defaultName])
->setDescription('Load data fixtures to your database.')
->addOption(
'bundle',
Expand Down

0 comments on commit 67e5773

Please sign in to comment.