|
|
@ -59,7 +59,7 @@ class Factory |
|
|
|
|
|
|
|
|
|
|
|
$instance = new $className($taskConfig, $inRollback, $stage, $taskParameters); |
|
|
|
$instance = new $className($taskConfig, $inRollback, $stage, $taskParameters); |
|
|
|
|
|
|
|
|
|
|
|
if (!is_a($instance, 'Mage\Task\AbstractTask')) { |
|
|
|
if (!($instance instanceof AbstractTask)) { |
|
|
|
throw new Exception('The Task ' . $taskName . ' must be an instance of Mage\Task\AbstractTask.'); |
|
|
|
throw new Exception('The Task ' . $taskName . ' must be an instance of Mage\Task\AbstractTask.'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|