mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 20:54:03 +00:00
Fix code style (php-cs-fixer)
This commit is contained in:
parent
a568aa3626
commit
c712505d4e
1 changed files with 1 additions and 2 deletions
|
|
@ -43,7 +43,6 @@ class PostgresRLSBootstrapper implements TenancyBootstrapper
|
||||||
$this->database->purge($centralConnection);
|
$this->database->purge($centralConnection);
|
||||||
|
|
||||||
/** @var TenantWithDatabase $tenant */
|
/** @var TenantWithDatabase $tenant */
|
||||||
|
|
||||||
$this->config->set([
|
$this->config->set([
|
||||||
'database.connections.' . $centralConnection . '.username' => $tenant->database()->getUsername() ?? $tenant->getTenantKey(),
|
'database.connections.' . $centralConnection . '.username' => $tenant->database()->getUsername() ?? $tenant->getTenantKey(),
|
||||||
'database.connections.' . $centralConnection . '.password' => $tenant->database()->getPassword() ?? $this->getDefaultPassword(),
|
'database.connections.' . $centralConnection . '.password' => $tenant->database()->getPassword() ?? $this->getDefaultPassword(),
|
||||||
|
|
@ -56,7 +55,7 @@ class PostgresRLSBootstrapper implements TenancyBootstrapper
|
||||||
|
|
||||||
$this->database->purge($centralConnection);
|
$this->database->purge($centralConnection);
|
||||||
|
|
||||||
$this->config->set('database.connections.' . $centralConnection, $this->originalCentralConnectionConfig);;
|
$this->config->set('database.connections.' . $centralConnection, $this->originalCentralConnectionConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getDefaultPassword(): string
|
public static function getDefaultPassword(): string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue