ReferrerEnforcer
Table of Contents
Properties
-
$request
: ServerRequestInterface
-
$requestDir
: string
-
$requestHost
: string
Methods
-
__construct()
: mixed
-
handle()
: ResponseInterface|null
-
resolveAbsoluteWebPath()
: string
-
resolveReferrerType()
: int
-
resolveRequestDir()
: string
-
resolveRequestHost()
: string
$request
protected
ServerRequestInterface
$request
$requestDir
protected
string
$requestDir
$requestHost
protected
string
$requestHost
__construct()
public
__construct(ServerRequestInterface $request) : mixed
Parameters
-
$request
: ServerRequestInterface
-
handle()
public
handle([array<string|int, mixed>|null $options = null ]) : ResponseInterface|null
Parameters
-
$options
: array<string|int, mixed>|null
= null
-
Return values
ResponseInterface|null
resolveAbsoluteWebPath()
protected
resolveAbsoluteWebPath(string $target) : string
Parameters
-
$target
: string
-
resolveReferrerType()
protected
resolveReferrerType() : int
resolveRequestDir()
protected
resolveRequestDir(ServerRequestInterface $request) : string
Parameters
-
$request
: ServerRequestInterface
-
resolveRequestHost()
protected
resolveRequestHost(ServerRequestInterface $request) : string
Parameters
-
$request
: ServerRequestInterface
-