| Conditions | 2 | 
| Paths | 1 | 
| Total Lines | 16 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 16 | public function boot() | ||
| 17 |     { | ||
| 18 |         Storage::extend('azure', function ($app, $config) { | ||
| 19 | $connectionString = sprintf( | ||
| 20 | 'DefaultEndpointsProtocol=%s;AccountName=%s;AccountKey=%s;EndpointSuffix=%s', | ||
| 21 | isset($config['protocol']) ? $config['protocol'] : 'https', | ||
| 22 | $config['account']['name'], | ||
| 23 | $config['account']['key'], | ||
| 24 | $config['endpoint-suffix'] | ||
| 25 | ); | ||
| 26 | |||
| 27 | $client = BlobRestProxy::createBlobService($connectionString); | ||
| 28 | |||
| 29 | return new Filesystem(new AzureBlobStorageAdapter($client, $config['container'])); | ||
| 30 | }); | ||
| 31 | } | ||
| 32 | |||
| 41 |