mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:14:04 +00:00
revert Tenancy changes, fix failing tests
This commit is contained in:
parent
02faf2407f
commit
5f41647a6b
2 changed files with 8 additions and 6 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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[] */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue