|
|
|
@ -12,8 +12,6 @@ namespace Mage\Task;
|
|
|
|
|
|
|
|
|
|
use Mage\Config; |
|
|
|
|
use Mage\Autoload; |
|
|
|
|
use Mage\Task\ErrorWithMessageException; |
|
|
|
|
use Mage\Task\AbstractTask; |
|
|
|
|
|
|
|
|
|
use Exception; |
|
|
|
|
|
|
|
|
@ -28,7 +26,7 @@ class Factory
|
|
|
|
|
* Gets an instance of a Task. |
|
|
|
|
* |
|
|
|
|
* @param string|array $taskData |
|
|
|
|
* @param Mage\Config $taskConfig |
|
|
|
|
* @param Config $taskConfig |
|
|
|
|
* @param boolean $inRollback |
|
|
|
|
* @param string $stage |
|
|
|
|
* @return \Mage\Task\AbstractTask |
|
|
|
@ -44,7 +42,7 @@ class Factory
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$instance = null; |
|
|
|
|
$taskName = ucwords(str_replace('-', ' ', $taskName)); |
|
|
|
|
$taskName = ucwords(str_replace('-', ' ', $taskName)); |
|
|
|
|
$taskName = str_replace(' ', '', $taskName); |
|
|
|
|
|
|
|
|
|
if (strpos($taskName, '/') === false) { |
|
|
|
@ -69,4 +67,4 @@ class Factory
|
|
|
|
|
|
|
|
|
|
return $instance; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|