Table of Contents
Constants
-
URI_KEYS
= ['document-uri', 'report-uri', 'blocked-uri', 'referrer']
Properties
-
$policyProvider
: PolicyProvider
-
$reportRepository
: ReportRepository
Methods
-
__construct()
: mixed
-
process()
: ResponseInterface
-
anonymizeDetails()
: array<string|int, mixed>
-
anonymizeUri()
: string
-
generateReportSummary()
: string
-
isCspReport()
: bool
-
isJson()
: bool
-
persistCspReport()
: void
URI_KEYS
protected
mixed
URI_KEYS
= ['document-uri', 'report-uri', 'blocked-uri', 'referrer']
__construct()
public
__construct(PolicyProvider $policyProvider, ReportRepository $reportRepository) : mixed
Parameters
-
$policyProvider
: PolicyProvider
-
-
$reportRepository
: ReportRepository
-
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
-
$request
: ServerRequestInterface
-
-
$handler
: RequestHandlerInterface
-
Return values
ResponseInterface
anonymizeDetails()
protected
anonymizeDetails(array<string|int, mixed> $details) : array<string|int, mixed>
Parameters
-
$details
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
anonymizeUri()
protected
anonymizeUri(string $value) : string
Parameters
-
$value
: string
-
generateReportSummary()
protected
generateReportSummary(Scope $scope, ReportDetails $details) : string
Parameters
-
$scope
: Scope
-
-
$details
: ReportDetails
-
isCspReport()
protected
isCspReport(Scope $scope, ServerRequestInterface $request) : bool
Parameters
-
$scope
: Scope
-
-
$request
: ServerRequestInterface
-
isJson()
protected
isJson(string $value) : bool
Parameters
-
$value
: string
-
persistCspReport()
protected
persistCspReport(Scope $scope, ServerRequestInterface $request) : void
Parameters
-
$scope
: Scope
-
-
$request
: ServerRequestInterface
-