Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
37 | public function build($config): AdapterInterface |
||
38 | { |
||
39 | $this->availabilityCheck(); |
||
40 | |||
41 | $endpoint = sprintf( |
||
42 | $this->endpoint, |
||
43 | base64_encode($config['accountName'] ?? ''), |
||
44 | base64_encode($config['apiKey'] ?? '') |
||
45 | ); |
||
46 | |||
47 | $client = ServicesBuilder::getInstance()->createBlobService($endpoint); |
||
|
|||
48 | |||
49 | return new AzureBlobStorageAdapter( |
||
50 | ServicesBuilder::getInstance()->createBlobService($endpoint), |
||
51 | $config['container'] |
||
52 | ); |
||
55 |