Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14066791
D13769.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.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
Wed, Nov 20, 11:53 AM (1 h, 29 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6711758
Default Alt Text
D13769.diff (1 KB)
Attached To
Mode
D13769: Update UIExamples for handleRequest
Attached
Detach File
Event Timeline
Log In to Comment