| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function doCreateService(ContainerInterface $container): AdapterInterface |
||
| 31 | 1 | { |
|
| 32 | if (! \class_exists(Adapter::class)) { |
||
| 33 | throw new RequirementsException(['league/flysystem-replicate-adapter'], 'Replicate'); |
||
| 34 | 4 | } |
|
| 35 | |||
| 36 | 4 | $connectionManager = $container->get('BsbFlysystemAdapterManager'); |
|
| 37 | 1 | ||
| 38 | return new Adapter( |
||
| 39 | $connectionManager->get($this->options['source']), |
||
| 40 | 3 | $connectionManager->get($this->options['replicate']) |
|
| 41 | 1 | ); |
|
| 42 | } |
||
| 43 | 2 | ||
| 55 |