Page MenuHomenazrin ltd
Diviner Tech Docs CelerityResourceController

abstract class CelerityResourceController
Phorge Technical Documentation (Celerity)

This class is not documented.

Methods

protected function buildResourceTransformer()

This method is not documented.
Return
wild

public function shouldRequireLogin()

This method is not documented.
Return
wild

public function shouldRequireEnabledUser()

This method is not documented.
Return
wild

public function shouldAllowPartialSessions()

This method is not documented.
Return
wild
This method is not documented.
Return
wild

abstract public function getCelerityResourceMap()

This method is not documented.
Return
wild

protected function serveResource($spec)

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

public static function getSupportedResourceTypes()

This method is not documented.
Return
wild

private function makeResponseCacheable($response)

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

private function isLocallyCacheableResourceType($type)

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