SessionTenancyBootstrapper
class SessionTenancyBootstrapper implements TenancyBootstrapper (View source)
This resets the database connection used by the database session driver.
It runs each time tenancy is initialized or ended. That way the session driver always uses the current DB connection.
Methods
__construct(Repository $config, Container $container, SessionManager $session)
No description
void
revert()
No description
void
resetDatabaseHandler(string $defaultConnection = null)
No description
DatabaseSessionHandler
createDatabaseHandler(string $defaultConnection = null)
No description
Details
__construct(Repository $config, Container $container, SessionManager $session)
No description
void
bootstrap(Tenant $tenant)
No description
void
revert()
No description
protected void
resetDatabaseHandler(string $defaultConnection = null)
No description
protected DatabaseSessionHandler
createDatabaseHandler(string $defaultConnection = null)
No description