3 final class PhabricatorTokenDestructionEngineExtension
4 extends PhabricatorDestructionEngineExtension
{
6 const EXTENSIONKEY
= 'tokens';
8 public function getExtensionName() {
12 public function canDestroyObject(
13 PhabricatorDestructionEngine
$engine,
15 return ($object instanceof PhabricatorTokenReceiverInterface
);
18 public function destroyObject(
19 PhabricatorDestructionEngine
$engine,
22 $tokens = id(new PhabricatorTokenGiven())->loadAllWhere(
26 foreach ($tokens as $token) {