shorten command names

This commit is contained in:
Tim 2021-12-28 19:20:55 +01:00
parent 7daddaab88
commit 7aba36e7bb
5 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ class BackupDatabase extends Command
{ {
use SelectDatabaseQuestion; use SelectDatabaseQuestion;
protected static $defaultName = 'app:db:backup'; protected static $defaultName = 'db:backup';
public function __construct( public function __construct(
private DatabaseService $db, private DatabaseService $db,

View File

@ -11,7 +11,7 @@ use Symfony\Component\Console\Question\Question;
class CreateDatabaseCommand extends Command class CreateDatabaseCommand extends Command
{ {
protected static $defaultName = 'app:db:create'; protected static $defaultName = 'db:create';
public function __construct( public function __construct(
private DatabaseService $db, private DatabaseService $db,

View File

@ -9,7 +9,7 @@ use Symfony\Component\Console\Output\OutputInterface;
class ListDatabasesCommand extends Command class ListDatabasesCommand extends Command
{ {
protected static $defaultName = 'app:db:list'; protected static $defaultName = 'db:list';
public function __construct( public function __construct(
private DatabaseService $db, private DatabaseService $db,

View File

@ -9,7 +9,7 @@ use Symfony\Component\Console\Output\OutputInterface;
class ListUsersCommand extends Command class ListUsersCommand extends Command
{ {
protected static $defaultName = 'app:users:list'; protected static $defaultName = 'user:list';
public function __construct( public function __construct(
private DatabaseService $db, private DatabaseService $db,

View File

@ -16,7 +16,7 @@ class RestoreDatabase extends Command
{ {
use SelectDatabaseQuestion; use SelectDatabaseQuestion;
protected static $defaultName = 'app:db:restore'; protected static $defaultName = 'db:restore';
public function __construct( public function __construct(
private DatabaseService $db, private DatabaseService $db,