Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 60% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | class FilesystemProvider |
||
25 | { |
||
26 | public const FILESYSTEM_ADAPTER_TAG = 'silverback.api_component.filesystem_adapter'; |
||
27 | |||
28 | private ServiceLocator $adapters; |
||
29 | |||
30 | 9 | public function __construct(ServiceLocator $adapters) |
|
31 | { |
||
32 | 9 | $this->adapters = $adapters; |
|
33 | 9 | } |
|
34 | |||
35 | /** |
||
36 | * @throws RuntimeException |
||
37 | */ |
||
38 | public function getAdapter(string $name): FilesystemAdapter |
||
41 | } |
||
42 | } |
||
43 |