Skip to content

Commit

Permalink
Add filesystem provider method
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasHermanek committed Nov 4, 2024
1 parent ddf38fa commit 12ea2c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/FileSystem/FileSystemProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ public function getFilesystemByStorable(FileSystemStorableInterface $storable):
return $filesystem;
}

public function getStorageNameBySlugAndType(string $slug, AssetType $type): string
{
$extSystemConfig = $this->extSystemConfigurationProvider->getAssetConfiguration($slug, $type);

return $extSystemConfig->getStorageName();
}

public function getStorageNameByStorable(FileSystemStorableInterface $storable): string
{
$extSystemConfig = $this->extSystemConfigurationProvider->getAssetConfiguration(
Expand Down

0 comments on commit 12ea2c4

Please sign in to comment.