This commit is contained in:
@ -18,13 +18,6 @@ use Exception;
|
||||
*/
|
||||
class Rclone
|
||||
{
|
||||
/**
|
||||
* The logger instance.
|
||||
*/
|
||||
protected LoggerInterface $logger;
|
||||
|
||||
protected string $rclonePath;
|
||||
|
||||
protected string $version = "";
|
||||
|
||||
/**
|
||||
@ -35,10 +28,9 @@ class Rclone
|
||||
*
|
||||
* @param string $rclonePath Relative or absolute path
|
||||
*/
|
||||
public function __construct(LoggerInterface $logger, string $rclonePath = "rclone")
|
||||
public function __construct(protected LoggerInterface $logger, protected string $rclonePath = "rclone")
|
||||
{
|
||||
$this->rclonePath = $rclonePath;
|
||||
$this->logger = $logger;
|
||||
|
||||
$process = $this->exec('--version');
|
||||
if (!$process->isSuccessful()) {
|
||||
|
Reference in New Issue
Block a user