From 6e1789fb4764d9427854d996a8ea375023eb8eed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Guti=C3=A9rrez?= Date: Fri, 2 Feb 2024 23:59:35 +0100 Subject: [PATCH] update to symfony console 7 --- src/Command/ListCommand.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Command/ListCommand.php b/src/Command/ListCommand.php index e3a34b5..487240a 100644 --- a/src/Command/ListCommand.php +++ b/src/Command/ListCommand.php @@ -14,6 +14,7 @@ use DI\Container; use DI\Definition\Exception\InvalidDefinition; use DI\NotFoundException; +use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Input\InputArgument; @@ -22,12 +23,9 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; +#[AsCommand(name: 'slim:container:list')] class ListCommand extends Command { - public const NAME = 'slim:container:list'; - - protected static $defaultName = self::NAME; - public function __construct( private Container $container, ?string $name = null,