BaseBuilder
in package
Class Firesphere\CSPHeaders\Builders
Table of Contents
Properties
- $currentRequest : HTTPRequest|null
Methods
- getCurrentRequest() : HTTPRequest|null
- getNonce() : void
- setCurrentRequest() : void
- getBaseCustomTags() : void
- getBaseHeadTags() : void
Properties
$currentRequest
protected
static HTTPRequest|null
$currentRequest
Cache to not constantly query around
Methods
getCurrentRequest()
public
static getCurrentRequest() : HTTPRequest|null
Return values
HTTPRequest|nullgetNonce()
public
static getNonce(array<string|int, mixed> &$options) : void
Parameters
- $options : array<string|int, mixed>
setCurrentRequest()
public
static setCurrentRequest(HTTPRequest $currentRequest) : void
Parameters
- $currentRequest : HTTPRequest
getBaseCustomTags()
protected
getBaseCustomTags([array<string|int, mixed> &$requirements = [] ][, array<string|int, mixed> $scripts = [] ][, string $type = '' ]) : void
Parameters
- $requirements : array<string|int, mixed> = []
- $scripts : array<string|int, mixed> = []
- $type : string = ''
getBaseHeadTags()
protected
getBaseHeadTags(array<string|int, mixed> &$requirements, array<string|int, mixed> $scripts[, string $type = '' ]) : void
Parameters
- $requirements : array<string|int, mixed>
- $scripts : array<string|int, mixed>
- $type : string = ''