Skip to content

Commit 88a3137

Browse files
committed
Allow command lazy loading
1 parent ed408e8 commit 88a3137

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Command/RouteDumpCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ final class RouteDumpCommand extends Command
1717

1818
public const TABLE_HEADER = ['Method', 'Path', 'Handler', 'Parameters'];
1919

20+
/** @var string */
21+
protected static $defaultName = 'apitte:route:dump';
22+
2023
/** @var Schema */
2124
private $schema;
2225

@@ -29,7 +32,7 @@ public function __construct(Schema $schema)
2932

3033
protected function configure(): void
3134
{
32-
$this->setName('apitte:route:dump');
35+
$this->setName(self::$defaultName);
3336
$this->setDescription('Lists all endpoints registered in application');
3437
}
3538

0 commit comments

Comments
 (0)