mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +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);
|
||||
}
|
||||
|
||||
public function willProcessRequest(array $data) {
|
||||
$this->path = $data['path'];
|
||||
$this->hash = $data['hash'];
|
||||
$this->library = $data['library'];
|
||||
$this->postprocessorKey = idx($data, 'postprocessor');
|
||||
}
|
||||
public function handleRequest(AphrontRequest $request) {
|
||||
$this->path = $request->getURIData('path');
|
||||
$this->hash = $request->getURIData('hash');
|
||||
$this->library = $request->getURIData('library');
|
||||
$this->postprocessorKey = $request->getURIData('postprocessor');
|
||||
|
||||
public function processRequest() {
|
||||
// Check that the resource library exists before trying to serve resources
|
||||
// from it.
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue