mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:24:03 +00:00
Fix exception message
Properly retrieve session driver name, previously $name was undefined
This commit is contained in:
parent
74634dfe4b
commit
6049ade20e
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ class CacheTenancyBootstrapper implements TenancyBootstrapper
|
|||
// Previously we just silently ignored this, however since session scoping is of high importance
|
||||
// in production, we make sure to notify the developer, by throwing an exception, that session
|
||||
// scoping isn't happening as expected/configured due to an incompatible session driver.
|
||||
throw new Exception('Session driver [' . $name . '] cannot be scoped by tenancy.cache.scope_session');
|
||||
throw new Exception('Session driver [' . $this->config->get('session.driver') . '] cannot be scoped by tenancy.cache.scope_session');
|
||||
}
|
||||
|
||||
// Scoping sessions using this bootstrapper implicitly adds the session store to $names
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue