From deb06727eaf2eda2c63d11c2a4a1a6c617d726cd Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sat, 1 Aug 2015 15:40:03 -0700 Subject: [PATCH] Update Help for handleRequest Summary: Updates Help for handleRequest Test Plan: Launch help dialog, close dialog Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T8628 Differential Revision: https://secure.phabricator.com/D13772 --- .../controller/PhabricatorHelpEditorProtocolController.php | 5 ++--- .../PhabricatorHelpKeyboardShortcutController.php | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/applications/help/controller/PhabricatorHelpEditorProtocolController.php b/src/applications/help/controller/PhabricatorHelpEditorProtocolController.php index 51dd4cfa0f..010e41ffcd 100644 --- a/src/applications/help/controller/PhabricatorHelpEditorProtocolController.php +++ b/src/applications/help/controller/PhabricatorHelpEditorProtocolController.php @@ -7,9 +7,8 @@ final class PhabricatorHelpEditorProtocolController return true; } - public function processRequest() { - $request = $this->getRequest(); - $viewer = $request->getUser(); + public function handleRequest(AphrontRequest $request) { + $viewer = $request->getViewer(); $dialog = id(new AphrontDialogView()) ->setUser($viewer) diff --git a/src/applications/help/controller/PhabricatorHelpKeyboardShortcutController.php b/src/applications/help/controller/PhabricatorHelpKeyboardShortcutController.php index f91182859a..b136265d7f 100644 --- a/src/applications/help/controller/PhabricatorHelpKeyboardShortcutController.php +++ b/src/applications/help/controller/PhabricatorHelpKeyboardShortcutController.php @@ -7,9 +7,8 @@ final class PhabricatorHelpKeyboardShortcutController return true; } - public function processRequest() { - $request = $this->getRequest(); - $user = $request->getUser(); + public function handleRequest(AphrontRequest $request) { + $viewer = $request->getViewer(); $keys = $request->getStr('keys'); try { @@ -59,7 +58,7 @@ final class PhabricatorHelpKeyboardShortcutController $rows); $dialog = id(new AphrontDialogView()) - ->setUser($user) + ->setUser($viewer) ->setTitle(pht('Keyboard Shortcuts')) ->appendChild($table) ->addCancelButton('#', pht('Close'));