mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 16:54:05 +00:00
Reverse bootstrappers when reverting to central
Some of my bootstrappers are depending on previous bootstrappers but when reverting it needs to run in reverse order. Submitting to v4 since this might be a breaking change (currently I am overriding this file).
This commit is contained in:
parent
3542b3f028
commit
44af6fdf22
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ class RevertToCentralContext
|
|||
{
|
||||
event(new RevertingToCentralContext($event->tenancy));
|
||||
|
||||
foreach ($event->tenancy->getBootstrappers() as $bootstrapper) {
|
||||
foreach (array_reverse($event->tenancy->getBootstrappers()) as $bootstrapper) {
|
||||
$bootstrapper->revert();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue