mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 08:24:04 +00:00
Add psysh as a dev dependency
This commit is contained in:
parent
2e0414cc62
commit
d14aa0b642
3 changed files with 6 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,3 +2,4 @@
|
||||||
composer.lock
|
composer.lock
|
||||||
vendor/
|
vendor/
|
||||||
.vscode/
|
.vscode/
|
||||||
|
psysh
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,8 @@
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"orchestra/testbench": "~3.0",
|
"orchestra/testbench": "~3.0",
|
||||||
"laravel/framework": "5.7.*",
|
"laravel/framework": "5.7.*",
|
||||||
"vlucas/phpdotenv": "^2.2"
|
"vlucas/phpdotenv": "^2.2",
|
||||||
|
"psy/psysh": "@stable"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,9 @@ class TenantManager
|
||||||
|
|
||||||
public function actAsId(string $uuid): array
|
public function actAsId(string $uuid): array
|
||||||
{
|
{
|
||||||
return $this->setTenant($this->storage->getTenantById($uuid));
|
$this->setTenant($this->storage->getTenantById($uuid));
|
||||||
|
$this->bootstrap(); // todo this could break storage_path() for example?
|
||||||
|
return $this->tenant;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function actAsDomain(string $domain): string
|
public function actAsDomain(string $domain): string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue