1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 08:04:03 +00:00

Merge branch 'master' into stein-j-readied-tenant

This commit is contained in:
Samuel Štancl 2022-09-29 16:01:24 +02:00 committed by GitHub
commit 0d1a85005d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 180 additions and 52 deletions

View file

@ -15,6 +15,8 @@ trait DealsWithTenantSymlinks
* Tenants can have a symlink for each disk registered in the tenancy.filesystem.url_override config.
*
* This is used for creating all possible tenant symlinks and removing all existing tenant symlinks.
*
* @return Collection<string, string>
*/
protected static function possibleTenantSymlinks(Tenant $tenant): Collection
{
@ -33,7 +35,7 @@ trait DealsWithTenantSymlinks
});
}
return $symlinks->mapWithKeys(fn ($item) => $item);
return $symlinks->mapWithKeys(fn ($item) => $item); // [[a => b], [c => d]] -> [a => b, c => d]
}
/** Determine if the provided path is an existing symlink. */