Controller
class Controller extends Controller implements Flushable
Top level controller for handling graphql requests.
Constants
CACHE_FILENAME |
|
Config options
cors | array | Cors default config | |
cache_types_in_filesystem | bool | If true, store the fragment JSON in a flat file in assets/ | |
cache_on_flush | bool | Toggles caching types to the file system on flush This is set to false in test state see DisableTypeCacheState |
Methods
Handles requests to the index action (e.g. /graphql)
No description
No description
No description
Get an instance of the authorization Handler to manage any authentication requirements
No description
Process the CORS config options and add the appropriate headers to the response.
Introspect the schema and persist it to the filesystem
No description
No description
Write the types json to a flat file, if silverstripe/assets is available
No description
Details
at line 77
__construct(Manager $manager = null)
at line 97
HTTPResponse
index(HTTPRequest $request)
Handles requests to the index action (e.g. /graphql)
at line 140
Manager
getManager(HTTPRequest $request = null)
at line 163
$this
setManager(Manager $manager)
at line 174
$this
setAssetHandler(GeneratedAssetHandler $handler)
at line 184
GeneratedAssetHandler
getAssetHandler()
at line 194
Handler
getAuthHandler()
Get an instance of the authorization Handler to manage any authentication requirements
at line 202
string
getToken()
at line 214
HTTPResponse
addCorsHeaders(HTTPRequest $request, HTTPResponse $response)
Process the CORS config options and add the appropriate headers to the response.
at line 415
writeSchemaToFilesystem()
Introspect the schema and persist it to the filesystem
at line 430
removeSchemaFromFilesystem()
at line 442
writeTypes(string $content)
at line 453
processTypeCaching()
Write the types json to a flat file, if silverstripe/assets is available