| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class FilesystemProvider |
||
| 25 | { |
||
| 26 | public const FILESYSTEM_ADAPTER_TAG = 'silverback.api_components.filesystem_adapter'; |
||
| 27 | public const FILESYSTEM_TAG = 'silverback.api_components.filesystem_adapter'; |
||
| 28 | |||
| 29 | private array $filesystems = []; |
||
| 30 | |||
| 31 | public function __construct(private readonly ServiceLocator $adapters) |
||
| 32 | {} |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @throws RuntimeException |
||
| 36 | */ |
||
| 37 | public function createFilesystem(string $name, array $config = []): Filesystem |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getFilesystem(string $name): ?Filesystem |
||
| 45 | } |
||
| 46 | } |
||
| 47 |