|
|
@@ -54,7 +54,7 @@ class LocalStorage implements FileStorageInterface
|
|
|
protected readonly CacheManager $cacheManager,
|
|
|
protected readonly ImageFactory $imageFactory,
|
|
|
protected readonly FileUtils $fileUtils,
|
|
|
- protected readonly UrlBuilder $urlBuilder
|
|
|
+ protected readonly UrlBuilder $urlBuilder,
|
|
|
) {
|
|
|
$this->filesystem = $filesystemMap->get(static::FS_KEY);
|
|
|
}
|
|
|
@@ -74,7 +74,7 @@ class LocalStorage implements FileStorageInterface
|
|
|
*/
|
|
|
public function listByOwner(
|
|
|
Organization|Access|Person $owner,
|
|
|
- ?FileTypeEnum $type = null
|
|
|
+ ?FileTypeEnum $type = null,
|
|
|
): array {
|
|
|
return $this->filesystem->listKeys(
|
|
|
$this->getPrefix($owner, false, $type)
|
|
|
@@ -152,7 +152,7 @@ class LocalStorage implements FileStorageInterface
|
|
|
bool $isTemporary = false,
|
|
|
FileVisibilityEnum $visibility = FileVisibilityEnum::NOBODY,
|
|
|
?string $mimeType = null,
|
|
|
- bool $flushFile = true
|
|
|
+ bool $flushFile = true,
|
|
|
): File {
|
|
|
[$organization, $person] = $this->getOrganizationAndPersonFromOwner($owner);
|
|
|
|
|
|
@@ -249,7 +249,7 @@ class LocalStorage implements FileStorageInterface
|
|
|
bool $isTemporary = false,
|
|
|
FileVisibilityEnum $visibility = FileVisibilityEnum::NOBODY,
|
|
|
?string $mimeType = null,
|
|
|
- ?string $config = null
|
|
|
+ ?string $config = null,
|
|
|
): File {
|
|
|
$file = $this->prepareFile(
|
|
|
$owner,
|
|
|
@@ -307,7 +307,7 @@ class LocalStorage implements FileStorageInterface
|
|
|
protected function getPrefix(
|
|
|
Organization|Access|Person $owner,
|
|
|
bool $isTemporary,
|
|
|
- ?FileTypeEnum $type = null
|
|
|
+ ?FileTypeEnum $type = null,
|
|
|
): string {
|
|
|
if ($owner instanceof Access) {
|
|
|
$prefix = Path::join('organization', $owner->getOrganization()?->getId(), $owner->getId());
|