Page MenuHomenazrin ltd
Diviner Tech Docs CelerityPhabricatorResourceController

final class CelerityPhabricatorResourceController
Phorge Technical Documentation (Celerity)

Delivers CSS and JS resources to the browser. This controller handles all /res/ requests, and manages caching, package construction, and resource preprocessing.

Methods

protected function buildResourceTransformer()

This method is not documented.
Return
wild

public function shouldRequireLogin()
Inherited

This method is not documented.
Return
wild

public function shouldRequireEnabledUser()
Inherited

This method is not documented.
Return
wild

public function shouldAllowPartialSessions()
Inherited

This method is not documented.
Return
wild

public function shouldAllowLegallyNonCompliantUsers()
Inherited

This method is not documented.
Return
wild

public function getCelerityResourceMap()

This method is not documented.
Return
wild

protected function serveResource($spec)
Inherited

This method is not documented.
Parameters
array$spec
Return
wild

public static function getSupportedResourceTypes()
Inherited

This method is not documented.
Return
wild

private function makeResponseCacheable($response)
Inherited

This method is not documented.
Parameters
AphrontResponse$response
Return
wild

private function isLocallyCacheableResourceType($type)
Inherited

CelerityResourceController

Is it appropriate to cache the data for this resource type in the fast immutable cache?

Generally, text resources (which are small, and expensive to process) are cached, while other types of resources (which are large, and cheap to process) are not.

Parameters
string$typeResource type.
Return
boolTrue to enable caching.

protected function getCacheKey($path)

This method is not documented.
Parameters
$path
Return
wild

public function handleRequest($request)

This method is not documented.
Parameters
AphrontRequest$request
Return
wild