Skip to content

Commit 53210ba

Browse files
Use #[AsCommand] to describe commands
1 parent b9b176a commit 53210ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Command/ServerDumpPlaceholderCommand.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Bundle\DebugBundle\Command;
1313

14+
use Symfony\Component\Console\Attribute\AsCommand;
1415
use Symfony\Component\Console\Command\Command;
1516
use Symfony\Component\Console\Input\InputInterface;
1617
use Symfony\Component\Console\Output\OutputInterface;
@@ -25,11 +26,9 @@
2526
*
2627
* @internal
2728
*/
29+
#[AsCommand(name: 'server:dump', description: 'Start a dump server that collects and displays dumps in a single place')]
2830
class ServerDumpPlaceholderCommand extends Command
2931
{
30-
protected static $defaultName = 'server:dump';
31-
protected static $defaultDescription = 'Start a dump server that collects and displays dumps in a single place';
32-
3332
private $replacedCommand;
3433

3534
public function __construct(DumpServer $server = null, array $descriptors = [])

0 commit comments

Comments
 (0)