Page MenuHomec4science

PhabricatorPhurlURLMailReceiver.php
No OneTemporary

File Metadata

Created
Sun, Nov 17, 09:40

PhabricatorPhurlURLMailReceiver.php

<?php
final class PhabricatorPhurlURLMailReceiver
extends PhabricatorObjectMailReceiver {
public function isEnabled() {
return PhabricatorApplication::isClassInstalled(
'PhabricatorPhurlApplication');
}
protected function getObjectPattern() {
return 'U[1-9]\d*';
}
protected function loadObject($pattern, PhabricatorUser $viewer) {
$id = (int)substr($pattern, 1);
return id(new PhabricatorPhurlURLQuery())
->setViewer($viewer)
->withIDs(array($id))
->executeOne();
}
protected function getTransactionReplyHandler() {
return new PhabricatorPhurlURLReplyHandler();
}
}

Event Timeline