|
|
@ -28,10 +28,11 @@ class Factory |
|
|
|
* Gets an instance of a Task. |
|
|
|
* Gets an instance of a Task. |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string|array $taskData |
|
|
|
* @param string|array $taskData |
|
|
|
* @param Mage\Config $taskConfig |
|
|
|
* @param \Mage\Config $taskConfig |
|
|
|
* @param boolean $inRollback |
|
|
|
* @param boolean $inRollback |
|
|
|
* @param string $stage |
|
|
|
* @param string $stage |
|
|
|
* @return \Mage\Task\AbstractTask |
|
|
|
* @return \Mage\Task\AbstractTask |
|
|
|
|
|
|
|
* @throws \Exception|\Mage\Task\ErrorWithMessageException |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static function get($taskData, Config $taskConfig, $inRollback = false, $stage = null) |
|
|
|
public static function get($taskData, Config $taskConfig, $inRollback = false, $stage = null) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -44,7 +45,7 @@ class Factory |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$instance = null; |
|
|
|
$instance = null; |
|
|
|
$taskName = ucwords(str_replace('-', ' ', $taskName)); |
|
|
|
$taskName = ucwords(str_replace('-', ' ', $taskName)); |
|
|
|
$taskName = str_replace(' ', '', $taskName); |
|
|
|
$taskName = str_replace(' ', '', $taskName); |
|
|
|
|
|
|
|
|
|
|
|
if (strpos($taskName, '/') === false) { |
|
|
|
if (strpos($taskName, '/') === false) { |
|
|
|