| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function boot() |
||
| 17 | { |
||
| 18 | Storage::extend('selectel', function ($app, $config) { |
||
| 19 | $api = new ApiClient($config['username'], $config['password']); |
||
| 20 | $storage = new CloudStorage($api); |
||
| 21 | $container = $storage->getContainer($config['container']); |
||
| 22 | |||
| 23 | return new Filesystem(new SelectelAdapter($container)); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | |||
| 35 |