@@ -28,24 +28,19 @@ class Docker extends Adapter
2828{
2929 private Table $ activeRuntimes ;
3030 private Stats $ stats ;
31- private StorageFactory $ storageFactory ;
3231 /**
3332 * @var string[]
3433 */
3534 private array $ networks ;
3635
3736 /**
3837 * @param Orchestration $orchestration
39- * @param StorageFactory $storageFactory
4038 * @param string[] $networks
4139 */
4240 public function __construct (
4341 private readonly Orchestration $ orchestration ,
44- StorageFactory $ storageFactory ,
4542 array $ networks
4643 ) {
47- $ this ->storageFactory = $ storageFactory ;
48-
4944 $ this ->activeRuntimes = new Table (4096 );
5045
5146 $ this ->activeRuntimes ->column ('version ' , Table::TYPE_STRING , 32 );
@@ -461,7 +456,7 @@ public function createRuntime(
461456 $ tmpLogging = "/ {$ tmpFolder }logging " ; // Build logs
462457 $ tmpLogs = "/ {$ tmpFolder }logs " ; // Runtime logs
463458
464- $ sourceDevice = $ this -> storageFactory -> getDevice ("/ " , System::getEnv ('OPR_EXECUTOR_CONNECTION_STORAGE ' ));
459+ $ sourceDevice = StorageFactory:: getDevice ("/ " , System::getEnv ('OPR_EXECUTOR_CONNECTION_STORAGE ' ));
465460 $ localDevice = new Local ();
466461
467462 try {
@@ -588,7 +583,7 @@ public function createRuntime(
588583 $ size = $ localDevice ->getFileSize ($ tmpBuild );
589584 $ container ['size ' ] = $ size ;
590585
591- $ destinationDevice = $ this -> storageFactory -> getDevice ($ destination , System::getEnv ('OPR_EXECUTOR_CONNECTION_STORAGE ' ));
586+ $ destinationDevice = StorageFactory:: getDevice ($ destination , System::getEnv ('OPR_EXECUTOR_CONNECTION_STORAGE ' ));
592587 $ path = $ destinationDevice ->getPath (\uniqid () . '. ' . \pathinfo ($ tmpBuild , PATHINFO_EXTENSION ));
593588
594589 if (!$ localDevice ->transfer ($ tmpBuild , $ path , $ destinationDevice )) {
0 commit comments