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

Clarify TenantAssetController's docblock

This commit is contained in:
lukinovec 2026-08-24 16:03:09 +02:00 committed by Samuel Stancl
parent ae98ac3bd4
commit ae88836c0b

View file

@ -16,11 +16,16 @@ use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Throwable; use Throwable;
/** /**
* Requires FilesystemTenancyBootstrapper to be enabled, since the assets are served from the * Serves files from app/public inside the tenant's storage directory, or from the root
* tenant's storage directory, which isn't tenant-specific unless the bootstrapper scopes it. * of the $publicDisk when one is configured.
* *
* With a $publicDisk configured, the assets are served from the disk's root instead, so the * Requires FilesystemTenancyBootstrapper to be enabled since it points the public disk's
* bootstrapper is only needed if that root should be tenant-specific. * root at the tenant's storage directory. Without it, the disk keeps writing to the central
* storage/app/public, so the tenant's directory is never populated and requests 404
* (the path itself is tenant-specific either way, via getBoundTenantStoragePath()).
*
* With a $publicDisk configured, the assets come from that disk's root instead. The
* bootstrapper is needed to make that root tenant-specific (see $publicDisk).
* *
* @see FilesystemTenancyBootstrapper * @see FilesystemTenancyBootstrapper
*/ */