diff --git a/src/applications/metamta/controller/PhabricatorMetaMTAMailgunReceiveController.php b/src/applications/metamta/controller/PhabricatorMetaMTAMailgunReceiveController.php index 0c353bf543..af5ca34712 100644 --- a/src/applications/metamta/controller/PhabricatorMetaMTAMailgunReceiveController.php +++ b/src/applications/metamta/controller/PhabricatorMetaMTAMailgunReceiveController.php @@ -18,7 +18,7 @@ final class PhabricatorMetaMTAMailgunReceiveController return phutil_hashes_are_identical($sig, $hash); } - public function processRequest() { + public function handleRequest(AphrontRequest $request) { // No CSRF for Mailgun. $unguarded = AphrontWriteGuard::beginScopedUnguardedWrites(); @@ -28,7 +28,6 @@ final class PhabricatorMetaMTAMailgunReceiveController pht('Mail signature is not valid. Check your Mailgun API key.')); } - $request = $this->getRequest(); $user = $request->getUser(); $raw_headers = $request->getStr('headers'); diff --git a/src/applications/metamta/controller/PhabricatorMetaMTASendGridReceiveController.php b/src/applications/metamta/controller/PhabricatorMetaMTASendGridReceiveController.php index 646d6ef2ae..0a5e28fcee 100644 --- a/src/applications/metamta/controller/PhabricatorMetaMTASendGridReceiveController.php +++ b/src/applications/metamta/controller/PhabricatorMetaMTASendGridReceiveController.php @@ -7,12 +7,10 @@ final class PhabricatorMetaMTASendGridReceiveController return false; } - public function processRequest() { + public function handleRequest(AphrontRequest $request) { // No CSRF for SendGrid. $unguarded = AphrontWriteGuard::beginScopedUnguardedWrites(); - - $request = $this->getRequest(); $user = $request->getUser(); $raw_headers = $request->getStr('headers');