1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 14:34:04 +00:00

Merge branch 'master' into stein-j-readied-tenant

This commit is contained in:
lukinovec 2022-09-29 10:10:09 +02:00 committed by GitHub
commit a70b143859
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 167 additions and 217 deletions

View file

@ -21,18 +21,10 @@ class Run extends Command
*/
protected $description = 'Run a command for tenant(s)';
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'tenants:run {commandname : The artisan command.}
{--tenants=* : The tenant(s) to run the command for. Default: all}';
/**
* Execute the console command.
*/
public function handle()
public function handle(): void
{
$argvInput = $this->ArgvInput();
$tenants = $this->getTenants();
@ -54,10 +46,7 @@ class Run extends Command
});
}
/**
* Get command as ArgvInput instance.
*/
protected function ArgvInput(): ArgvInput
protected function argvInput(): ArgvInput
{
// Convert string command to array
$subCommand = explode(' ', $this->argument('commandname'));