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:
commit
a70b143859
36 changed files with 167 additions and 217 deletions
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue