mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-06 16:24:03 +00:00
Improve readability of harden() call
This commit is contained in:
parent
7f93f4460a
commit
7660ddd3ab
1 changed files with 7 additions and 7 deletions
|
|
@ -51,15 +51,15 @@ class DatabaseTenancyBootstrapper implements TenancyBootstrapper
|
||||||
|
|
||||||
$this->database->connectToTenant($tenant);
|
$this->database->connectToTenant($tenant);
|
||||||
|
|
||||||
try {
|
if (static::$harden) {
|
||||||
if (static::$harden) {
|
try {
|
||||||
$this->harden($tenant);
|
$this->harden($tenant);
|
||||||
}
|
} catch (RuntimeException $e) {
|
||||||
} catch (RuntimeException $e) {
|
// Revert connection back to central
|
||||||
// Revert connection back to central
|
$this->revert();
|
||||||
$this->revert();
|
|
||||||
|
|
||||||
throw $e;
|
throw $e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue