1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 22:14:03 +00:00

Fix exception message

Properly retrieve session driver name, previously $name was undefined
This commit is contained in:
Samuel Štancl 2025-10-16 00:15:28 +02:00
parent 74634dfe4b
commit 6049ade20e
No known key found for this signature in database
GPG key ID: BA146259A1E16C57

View file

@ -109,7 +109,7 @@ class CacheTenancyBootstrapper implements TenancyBootstrapper
// Previously we just silently ignored this, however since session scoping is of high importance // 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 // 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. // 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 // Scoping sessions using this bootstrapper implicitly adds the session store to $names