Skip to content

Commit 7ecb56f

Browse files
authored
fix: deprecated UpgradeApiResourceCommand::$defaultName (#4888)
1 parent 4247162 commit 7ecb56f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Core/Bridge/Symfony/Bundle/Command/UpgradeApiResourceCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,18 @@
3131
use PhpParser\Parser\Php7;
3232
use PhpParser\PrettyPrinter\Standard;
3333
use SebastianBergmann\Diff\Differ;
34+
use Symfony\Component\Console\Attribute\AsCommand;
3435
use Symfony\Component\Console\Command\Command;
3536
use Symfony\Component\Console\Input\InputInterface;
3637
use Symfony\Component\Console\Input\InputOption;
3738
use Symfony\Component\Console\Output\OutputInterface;
3839

40+
#[AsCommand(name: 'api:upgrade-resource')]
3941
final class UpgradeApiResourceCommand extends Command
4042
{
43+
/**
44+
* @deprecated To be removed along with Symfony < 6.1 compatibility
45+
*/
4146
protected static $defaultName = 'api:upgrade-resource';
4247

4348
private $resourceNameCollectionFactory;

0 commit comments

Comments
 (0)