1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-09-20 14:34:03 +00:00

Make scopeSessions() respect the original configured session.files path instead of hardcoding /framework/sessions

Also rename tenantCachePath to tenantScopedPath since it's now used both for scoping cache and session paths.

Note that the $originalPath local variable -- added that to avoid PHPStan errors.
This commit is contained in:
lukinovec 2026-08-06 14:06:17 +02:00
parent efb417dada
commit 8c8bd6e88e
2 changed files with 15 additions and 8 deletions

View file

@ -572,7 +572,7 @@ test('a file cache store without a configured lock_path defaults to using its sc
});
test('a cache store using a path not based on storage_path() has the tenant suffix appended', function () {
// tenantCachePath() has no central storage path prefix to swap for the tenant's here,
// tenantScopedPath() has no central storage path prefix to swap for the tenant's here,
// so it appends the tenant suffix to $path instead.
$path = '/tmp/tenancy-cache-test';
File::deleteDirectory($path);