1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 09:34:04 +00:00

Add psysh as a dev dependency

This commit is contained in:
Samuel Štancl 2019-02-08 16:10:59 +01:00
parent 2e0414cc62
commit d14aa0b642
3 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
composer.lock composer.lock
vendor/ vendor/
.vscode/ .vscode/
psysh

View file

@ -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": {

View file

@ -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