mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 23:32:40 +01:00
Update Celerity for handleRequest
Summary: Updates Celerity controllers Test Plan: View Phabricator, change to high contrast, change to larger fonts. Everything seems ok? Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D13838
This commit is contained in:
parent
803e5dc7e2
commit
97e30c1d06
1 changed files with 5 additions and 7 deletions
|
@ -17,14 +17,12 @@ final class CelerityPhabricatorResourceController
|
||||||
return CelerityResourceMap::getNamedInstance($this->library);
|
return CelerityResourceMap::getNamedInstance($this->library);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function willProcessRequest(array $data) {
|
public function handleRequest(AphrontRequest $request) {
|
||||||
$this->path = $data['path'];
|
$this->path = $request->getURIData('path');
|
||||||
$this->hash = $data['hash'];
|
$this->hash = $request->getURIData('hash');
|
||||||
$this->library = $data['library'];
|
$this->library = $request->getURIData('library');
|
||||||
$this->postprocessorKey = idx($data, 'postprocessor');
|
$this->postprocessorKey = $request->getURIData('postprocessor');
|
||||||
}
|
|
||||||
|
|
||||||
public function processRequest() {
|
|
||||||
// Check that the resource library exists before trying to serve resources
|
// Check that the resource library exists before trying to serve resources
|
||||||
// from it.
|
// from it.
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue