1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-09-20 16:04:06 +00:00

Correct and clarify the suffix appending comment in tenantScopedPath

Also correct the terminology/wording in the related test.
This commit is contained in:
lukinovec 2026-08-26 13:22:11 +02:00
parent 6ee058d166
commit bd101797ea
2 changed files with 5 additions and 4 deletions

View file

@ -250,7 +250,8 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
->toString();
}
// Otherwise $configuredPath isn't necessarily storage_path()-based, so just append the suffix directly.
// Otherwise $configuredPath isn't necessarily storage_path()-based, so just append the
// suffix as a subdirectory, e.g. '/var/cache/foo' becomes '/var/cache/foo/tenant1'.
return rtrim($configuredPath, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $suffix;
}