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