Page MenuHomePhabricator

D13769.diff
No OneTemporary

D13769.diff

diff --git a/src/applications/uiexample/controller/PhabricatorUIExampleRenderController.php b/src/applications/uiexample/controller/PhabricatorUIExampleRenderController.php
--- a/src/applications/uiexample/controller/PhabricatorUIExampleRenderController.php
+++ b/src/applications/uiexample/controller/PhabricatorUIExampleRenderController.php
@@ -2,17 +2,12 @@
final class PhabricatorUIExampleRenderController extends PhabricatorController {
- private $class;
-
public function shouldAllowPublic() {
return true;
}
- public function willProcessRequest(array $data) {
- $this->class = idx($data, 'class');
- }
-
- public function processRequest() {
+ public function handleRequest(AphrontRequest $request) {
+ $id = $request->getURIData('class');
$classes = id(new PhutilSymbolLoader())
->setAncestorClass('PhabricatorUIExample')
@@ -27,7 +22,7 @@
$nav->addFilter($class, $name);
}
- $selected = $nav->selectFilter($this->class, head_key($classes));
+ $selected = $nav->selectFilter($id, head_key($classes));
$example = $classes[$selected];
$example->setRequest($this->getRequest());

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 11, 9:54 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6711758
Default Alt Text
D13769.diff (1 KB)

Event Timeline