/**
  * Initialize job instance
  *
  * @param string $name
  * @param array $params
  * @param \Magento\Update\Status|null $status
  * @param \Magento\Update\Backup|null $backup
  * @param \Magento\Update\Rollback|null $rollback
  * @param \Magento\Update\Queue\JobUpdate\ComposerManager|null $composerManager
  * @param \Magento\Update\MaintenanceMode|null $maintenanceMode
  */
 public function __construct($name, $params, \Magento\Update\Status $status = null, \Magento\Update\Backup $backup = null, \Magento\Update\Rollback $rollback = null, \Magento\Update\Queue\JobUpdate\ComposerManager $composerManager = null, \Magento\Update\MaintenanceMode $maintenanceMode = null)
 {
     parent::__construct($name, $params, $status);
     $this->backup = $backup ? $backup : new Backup();
     $this->rollback = $rollback ? $rollback : new Rollback();
     $this->composerManager = $composerManager ? $composerManager : new ComposerManager();
     $this->maintenanceMode = $maintenanceMode ? $maintenanceMode : new MaintenanceMode();
 }
 /**
  * Constructor
  *
  * @param string $name
  * @param array $params
  * @param MagentoComposerApplication $composerApp
  * @param Status $status
  */
 public function __construct($name, $params, MagentoComposerApplication $composerApp = null, Status $status = null, Queue $queue = null)
 {
     parent::__construct($name, $params, $status);
     $vendorPath = MAGENTO_BP . '/' . (include MAGENTO_BP . '/app/etc/vendor_path.php');
     $composerPath = $vendorPath . '/../composer.json';
     $composerPath = realpath($composerPath);
     $this->queue = $queue ? $queue : new Queue();
     $this->composerApp = $composerApp ? $composerApp : new MagentoComposerApplication(MAGENTO_BP . '/var/composer_home', $composerPath);
 }
 /**
  * Constructor
  *
  * @param string $name
  * @param array $params
  * @param Queue $queue
  * @param MagentoComposerApplication $composerApp
  * @param \Magento\Update\Status $status
  * @param Backup $backup
  * @param Rollback $rollback
  */
 public function __construct($name, $params, Queue $queue = null, MagentoComposerApplication $composerApp = null, \Magento\Update\Status $status = null, Backup $backup = null, Rollback $rollback = null)
 {
     parent::__construct($name, $params, $status);
     $this->queue = $queue ? $queue : new Queue();
     $this->backup = $backup ? $backup : new Backup();
     $this->rollback = $rollback ? $rollback : new Rollback();
     $vendorPath = MAGENTO_BP . '/' . (include MAGENTO_BP . '/app/etc/vendor_path.php');
     $composerPath = $vendorPath . '/../composer.json';
     $composerPath = realpath($composerPath);
     $this->composerApp = $composerApp ? $composerApp : new MagentoComposerApplication(MAGENTO_BP . '/var/composer_home', $composerPath);
 }
 /**
  * Initialize job instance.
  *
  * @param string $name
  * @param array $params
  * @param Status|null $status
  * @param MaintenanceMode|null $maintenanceMode
  * @param BackupInfo|null $backupInfo
  */
 public function __construct($name, array $params, Status $status = null, MaintenanceMode $maintenanceMode = null, $backupInfo = null)
 {
     parent::__construct($name, $params, $status, $maintenanceMode);
     $backupInfo = $backupInfo ? $backupInfo : new BackupInfo();
     $this->backup = new Backup($backupInfo);
 }