Differential D14265 Diff 34518 src/applications/conduit/controller/PhabricatorConduitListController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/controller/PhabricatorConduitListController.php
<?php | <?php | ||||
final class PhabricatorConduitListController | final class PhabricatorConduitListController | ||||
extends PhabricatorConduitController { | extends PhabricatorConduitController { | ||||
private $queryKey; | |||||
public function shouldAllowPublic() { | public function shouldAllowPublic() { | ||||
return true; | return true; | ||||
} | } | ||||
public function willProcessRequest(array $data) { | public function handleRequest(AphrontRequest $request) { | ||||
$this->queryKey = idx($data, 'queryKey'); | |||||
} | |||||
public function processRequest() { | |||||
$controller = id(new PhabricatorApplicationSearchController()) | $controller = id(new PhabricatorApplicationSearchController()) | ||||
->setQueryKey($this->queryKey) | ->setQueryKey($request->getURIData('queryKey')) | ||||
->setSearchEngine(new PhabricatorConduitSearchEngine()) | ->setSearchEngine(new PhabricatorConduitSearchEngine()) | ||||
->setNavigation($this->buildSideNavView()); | ->setNavigation($this->buildSideNavView()); | ||||
return $this->delegateToController($controller); | return $this->delegateToController($controller); | ||||
} | } | ||||
} | } |