mirror of https://github.com/hauke68/Magallanes
parent
00edf87862
commit
dc18a91cf7
@ -1,23 +1,22 @@ |
||||
<?php |
||||
namespace Task; |
||||
|
||||
use Mage\Task\AbstractTask; |
||||
use Mage\Task\Releases\RollbackAware; |
||||
|
||||
class SampleTaskRollbackAware extends AbstractTask implements RollbackAware |
||||
{ |
||||
public function getName() |
||||
{ |
||||
if ($this->inRollback()) { |
||||
return 'A Sample Task aware of rollbacks [in rollback]'; |
||||
} else { |
||||
return 'A Sample Task aware of rollbacks [not in rollback]'; |
||||
} |
||||
} |
||||
|
||||
public function run() |
||||
{ |
||||
return true; |
||||
} |
||||
} |
||||
|
||||
<?php |
||||
namespace Task; |
||||
|
||||
use Mage\Task\AbstractTask; |
||||
use Mage\Task\Releases\RollbackAware; |
||||
|
||||
class SampleTaskRollbackAware extends AbstractTask implements RollbackAware |
||||
{ |
||||
public function getName() |
||||
{ |
||||
if ($this->inRollback()) { |
||||
return 'A Sample Task aware of rollbacks [in rollback]'; |
||||
} else { |
||||
return 'A Sample Task aware of rollbacks [not in rollback]'; |
||||
} |
||||
} |
||||
|
||||
public function run() |
||||
{ |
||||
return true; |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue