mirror of https://github.com/hauke68/Magallanes
Andrés Montañez
10 years ago
4 changed files with 26 additions and 37 deletions
@ -1,23 +1,22 @@ |
|||||||
<?php |
<?php |
||||||
namespace Task; |
namespace Task; |
||||||
|
|
||||||
use Mage\Task\AbstractTask; |
use Mage\Task\AbstractTask; |
||||||
use Mage\Task\Releases\RollbackAware; |
use Mage\Task\Releases\RollbackAware; |
||||||
|
|
||||||
class SampleTaskRollbackAware extends AbstractTask implements RollbackAware |
class SampleTaskRollbackAware extends AbstractTask implements RollbackAware |
||||||
{ |
{ |
||||||
public function getName() |
public function getName() |
||||||
{ |
{ |
||||||
if ($this->inRollback()) { |
if ($this->inRollback()) { |
||||||
return 'A Sample Task aware of rollbacks [in rollback]'; |
return 'A Sample Task aware of rollbacks [in rollback]'; |
||||||
} else { |
} else { |
||||||
return 'A Sample Task aware of rollbacks [not in rollback]'; |
return 'A Sample Task aware of rollbacks [not in rollback]'; |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
public function run() |
public function run() |
||||||
{ |
{ |
||||||
return true; |
return true; |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
|
Loading…
Reference in new issue