path = $data['path']; $this->hash = $data['hash']; $this->package = !empty($data['package']); } public function processRequest() { $package_hash = null; if ($this->package) { $package_hash = $this->hash; } return $this->serveResource($this->path, $package_hash); } protected function buildResourceTransformer() { $xformer = new CelerityResourceTransformer(); $xformer->setMinify(PhabricatorEnv::getEnvConfig('celerity.minify')); $xformer->setCelerityMap(CelerityResourceMap::getInstance()); return $xformer; } }