Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
12 | public function __invoke(array $options) |
||
13 | { |
||
14 | $accountName = $options['accountName'] ?? null; |
||
15 | $apiKey = $options['apiKey'] ?? null; |
||
16 | $container = $options['container'] ?? null; |
||
17 | $prefix = $options['prefix'] ?? null; |
||
18 | |||
19 | $endpoint = sprintf('DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s', $accountName, $apiKey); |
||
20 | |||
21 | $proxy = ServicesBuilder::getInstance()->createBlobService($endpoint); |
||
22 | return new AzureAdapter($proxy, $container, $prefix); |
||
23 | } |
||
24 | } |
||
25 |