b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / a / home / dev2.destoffenstraat.com / update / app / code / Magento / Update / Queue /
Filename/home/a/home/dev2.destoffenstraat.com/update/app/code/Magento/Update/Queue/JobFactory.php
Size1.59 kb
Permissionrw-r--r--
Ownerroot : root
Create time21-Aug-2025 12:26
Last modified06-Apr-2021 18:06
Last accessed23-Aug-2025 12:39
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Update\Queue;

/**
* Magento updater application job factory.
*/
class JobFactory
{
/**#@+
* Job name
*/
const NAME_UPDATE = 'update';
const NAME_BACKUP = 'backup';
const NAME_ROLLBACK = 'rollback';
const NAME_REMOVE_BACKUPS = 'remove_backups';
const NAME_UNINSTALL = 'uninstall';
const NAME_MAINTENANCE_MODE = 'maintenance_mode';
/**#@-*/

/**
* Create job instance.
*
* @param string $name
* @param array $params
* @return AbstractJob
* @throws \RuntimeException
*/
public function create($name, array $params)
{
switch ($name) {
case self::NAME_UPDATE:
return new JobUpdate($name, $params);
break;
case self::NAME_BACKUP:
return new JobBackup($name, $params);
break;
case self::NAME_ROLLBACK:
return new JobRollback($name, $params);
break;
case self::NAME_REMOVE_BACKUPS:
return new JobRemoveBackups($name, $params);
break;
case self::NAME_MAINTENANCE_MODE:
return new JobMaintenanceMode($name, $params);
break;
case self::NAME_UNINSTALL:
return new JobComponentUninstall($name, $params);
break;
default:
throw new \RuntimeException(sprintf('"%s" job is not supported.', $name));
}
}
}