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

revert Tenancy changes, fix failing tests

This commit is contained in:
Samuel Štancl 2022-08-26 21:49:09 +02:00
parent 02faf2407f
commit 5f41647a6b
2 changed files with 8 additions and 6 deletions

View file

@ -17,16 +17,16 @@
"require": { "require": {
"php": "^8.1", "php": "^8.1",
"ext-json": "*", "ext-json": "*",
"illuminate/support": "^8.0|^9.0", "illuminate/support": "^9.0",
"facade/ignition-contracts": "^1.0", "facade/ignition-contracts": "^1.0",
"ramsey/uuid": "^4.0", "ramsey/uuid": "^4.0",
"stancl/jobpipeline": "^1.0", "stancl/jobpipeline": "^1.0",
"stancl/virtualcolumn": "^1.0" "stancl/virtualcolumn": "^1.0"
}, },
"require-dev": { "require-dev": {
"laravel/framework": "^8.0|^9.0", "laravel/framework": "^9.0",
"orchestra/testbench": "^6.0|^7.0", "orchestra/testbench": "^7.0",
"league/flysystem-aws-s3-v3": "^1.0|^3.0", "league/flysystem-aws-s3-v3": "^3.0",
"doctrine/dbal": "^2.10", "doctrine/dbal": "^2.10",
"spatie/valuestore": "^1.2.5", "spatie/valuestore": "^1.2.5",
"pestphp/pest": "^1.21" "pestphp/pest": "^1.21"

View file

@ -68,11 +68,13 @@ class Tenancy
event(new Events\EndingTenancy($this)); event(new Events\EndingTenancy($this));
// todo find a way to refactor these two methods
event(new Events\TenancyEnded($this));
$this->tenant = null; $this->tenant = null;
$this->initialized = false; $this->initialized = false;
event(new Events\TenancyEnded($this));
} }
/** @return TenancyBootstrapper[] */ /** @return TenancyBootstrapper[] */