From 5e54e3e7d930d8f399692c77dcde05da68fae19f Mon Sep 17 00:00:00 2001 From: lukinovec Date: Thu, 20 Aug 2026 16:00:54 +0200 Subject: [PATCH] Reword DeleteTenantStorage docblock The docblock said that the FSBootstrapper was required for this job to work at all, but that's not fully true since the job just uses the FSBootstrapper's public static methods to get the storage paths. --- src/Jobs/DeleteTenantStorage.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Jobs/DeleteTenantStorage.php b/src/Jobs/DeleteTenantStorage.php index 0e8290e6..d38ab485 100644 --- a/src/Jobs/DeleteTenantStorage.php +++ b/src/Jobs/DeleteTenantStorage.php @@ -16,8 +16,10 @@ use Stancl\Tenancy\Contracts\Tenant; /** * Delete the tenant's storage directory. * - * Requires FilesystemTenancyBootstrapper to be enabled, since the tenant storage path - * is resolved from it. + * The directory is the one FilesystemTenancyBootstrapper scopes the tenant's disks, cache + * and sessions to. The path is derived the same way the bootstrapper derives it, so the + * bootstrapper doesn't *have* to be enabled (though if it isn't, nothing was written there and + * there's nothing to delete). * * Files outside that directory (e.g. disks with an %original_storage_path%-based * root_override) are not deleted.