Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14039530
D13769.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13769.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 12, 5:55 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6711758
Default Alt Text
D13769.id.diff (1 KB)
Attached To
Mode
D13769: Update UIExamples for handleRequest
Attached
Detach File
Event Timeline
Log In to Comment