From 7aba36e7bb21b4acd9d122b701d165564c871356 Mon Sep 17 00:00:00 2001 From: tim Date: Tue, 28 Dec 2021 19:20:55 +0100 Subject: [PATCH] shorten command names --- src/Console/BackupDatabase.php | 2 +- src/Console/CreateDatabaseCommand.php | 2 +- src/Console/ListDatabasesCommand.php | 2 +- src/Console/ListUsersCommand.php | 2 +- src/Console/RestoreDatabase.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Console/BackupDatabase.php b/src/Console/BackupDatabase.php index f996a1b..8d586aa 100644 --- a/src/Console/BackupDatabase.php +++ b/src/Console/BackupDatabase.php @@ -14,7 +14,7 @@ class BackupDatabase extends Command { use SelectDatabaseQuestion; - protected static $defaultName = 'app:db:backup'; + protected static $defaultName = 'db:backup'; public function __construct( private DatabaseService $db, diff --git a/src/Console/CreateDatabaseCommand.php b/src/Console/CreateDatabaseCommand.php index cd1b060..fa9db07 100644 --- a/src/Console/CreateDatabaseCommand.php +++ b/src/Console/CreateDatabaseCommand.php @@ -11,7 +11,7 @@ use Symfony\Component\Console\Question\Question; class CreateDatabaseCommand extends Command { - protected static $defaultName = 'app:db:create'; + protected static $defaultName = 'db:create'; public function __construct( private DatabaseService $db, diff --git a/src/Console/ListDatabasesCommand.php b/src/Console/ListDatabasesCommand.php index 723cf91..7063fa9 100644 --- a/src/Console/ListDatabasesCommand.php +++ b/src/Console/ListDatabasesCommand.php @@ -9,7 +9,7 @@ use Symfony\Component\Console\Output\OutputInterface; class ListDatabasesCommand extends Command { - protected static $defaultName = 'app:db:list'; + protected static $defaultName = 'db:list'; public function __construct( private DatabaseService $db, diff --git a/src/Console/ListUsersCommand.php b/src/Console/ListUsersCommand.php index 39996da..1ebd936 100644 --- a/src/Console/ListUsersCommand.php +++ b/src/Console/ListUsersCommand.php @@ -9,7 +9,7 @@ use Symfony\Component\Console\Output\OutputInterface; class ListUsersCommand extends Command { - protected static $defaultName = 'app:users:list'; + protected static $defaultName = 'user:list'; public function __construct( private DatabaseService $db, diff --git a/src/Console/RestoreDatabase.php b/src/Console/RestoreDatabase.php index 9200b18..8a561d9 100644 --- a/src/Console/RestoreDatabase.php +++ b/src/Console/RestoreDatabase.php @@ -16,7 +16,7 @@ class RestoreDatabase extends Command { use SelectDatabaseQuestion; - protected static $defaultName = 'app:db:restore'; + protected static $defaultName = 'db:restore'; public function __construct( private DatabaseService $db,