Skip to content

Commit 42424be

Browse files
author
Vítězslav Dvořák
committed
Updates constructor to use reference for job parameter
Modifies the constructor of the Docker class to accept a reference to the Job object, enhancing performance by avoiding unnecessary copies. This change supports better memory management and prepares the class for potential future modifications that may require direct manipulation of the job instance.
1 parent 6a52288 commit 42424be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MultiFlexi/Executor/Docker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class Docker extends Native implements \MultiFlexi\executor
2727
use \Ease\Logger\Logging;
2828
public const PULLCOMMAND = 'docker pull docker.io/vitexsoftware/debian:bookworm';
2929

30-
public function __construct($job)
30+
public function __construct(\MultiFlexi\Job &$job)
3131
{
32-
$this->job = $job;
32+
parent::__construct($job);
3333
}
3434

3535
public static function name(): string

0 commit comments

Comments
 (0)