mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 23:14:04 +00:00
Merge hotfix branch (#834)
* try specifying the signature in __construct * constructor doesn't work since Reflection is used, try specifying getDefaultName() instead * Fixed: make migration commands compatible * Fix failing tests * Fix username generation * Re-create tmp dir as well if needed * wip
This commit is contained in:
parent
4f19609797
commit
349125c02e
10 changed files with 75 additions and 27 deletions
23
src/Concerns/ExtendsLaravelCommand.php
Normal file
23
src/Concerns/ExtendsLaravelCommand.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Concerns;
|
||||
|
||||
trait ExtendsLaravelCommand
|
||||
{
|
||||
protected function specifyTenantSignature(): void
|
||||
{
|
||||
$this->specifyParameters();
|
||||
}
|
||||
|
||||
public function getName(): ?string
|
||||
{
|
||||
return static::getTenantCommandName();
|
||||
}
|
||||
|
||||
public static function getDefaultName(): ?string
|
||||
{
|
||||
return static::getTenantCommandName();
|
||||
}
|
||||
|
||||
abstract protected static function getTenantCommandName(): string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue