CspAjaxController
AJAX endpoint for the CSP backend module, providing access to persisted CSP reports & resolutions.
This is a specific Backend Controller implementation and is not considered part of the Public TYPO3 API.
Attributes
- #[AsController]
Table of Contents
Properties
- $eventDispatcher : EventDispatcherInterface
- $hashService : HashService
- $modelService : ModelService
- $policyProvider : PolicyProvider
- $reportRepository : ReportRepository
- $resolutionRepository : ResolutionRepository
Methods
- __construct() : mixed
- handleRequest() : ResponseInterface
- deleteReportAction() : ResponseInterface
- deleteReportsAction() : ResponseInterface
- dispatchAction() : ResponseInterface|null
- dispatchInvestigateMutationsEvent() : InvestigateMutationsEvent
- fetchReportsAction() : ResponseInterface
- generateResolutionSummary() : string
- handleReportAction() : ResponseInterface
- isSystemMaintainer() : bool
- mutateReportAction() : ResponseInterface
- muteReportAction() : ResponseInterface
- resolveReportUuids() : array<string|int, mixed>
Properties
$eventDispatcher read-only
        protected
            EventDispatcherInterface
    $eventDispatcher
    
    
    
    
    
    
$hashService read-only
        protected
            HashService
    $hashService
    
    
    
    
    
    
$modelService read-only
        protected
            ModelService
    $modelService
    
    
    
    
    
    
$policyProvider read-only
        protected
            PolicyProvider
    $policyProvider
    
    
    
    
    
    
$reportRepository read-only
        protected
            ReportRepository
    $reportRepository
    
    
    
    
    
    
$resolutionRepository read-only
        protected
            ResolutionRepository
    $resolutionRepository
    
    
    
    
    
    
Methods
__construct()
    public
                    __construct(ModelService $modelService, PolicyProvider $policyProvider, ReportRepository $reportRepository, ResolutionRepository $resolutionRepository, EventDispatcherInterface $eventDispatcher, HashService $hashService) : mixed
    Parameters
- $modelService : ModelService
- $policyProvider : PolicyProvider
- $reportRepository : ReportRepository
- $resolutionRepository : ResolutionRepository
- $eventDispatcher : EventDispatcherInterface
- $hashService : HashService
handleRequest()
    public
                    handleRequest(ServerRequestInterface $request) : ResponseInterface
    Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacedeleteReportAction()
    protected
                    deleteReportAction(string ...$summaries) : ResponseInterface
    Parameters
- $summaries : string
Return values
ResponseInterfacedeleteReportsAction()
    protected
                    deleteReportsAction(Scope|null $scope) : ResponseInterface
    Parameters
- $scope : Scope|null
Return values
ResponseInterfacedispatchAction()
    protected
                    dispatchAction(ServerRequestInterface $request) : ResponseInterface|null
    Parameters
- $request : ServerRequestInterface
Return values
ResponseInterface|nulldispatchInvestigateMutationsEvent()
    protected
                    dispatchInvestigateMutationsEvent(Report $report) : InvestigateMutationsEvent
    Parameters
- $report : Report
Return values
InvestigateMutationsEventfetchReportsAction()
    protected
                    fetchReportsAction(Scope|null $scope) : ResponseInterface
    Parameters
- $scope : Scope|null
Return values
ResponseInterfacegenerateResolutionSummary()
    protected
                    generateResolutionSummary(Scope $scope, MutationSuggestion $suggestion) : string
    Parameters
- $scope : Scope
- $suggestion : MutationSuggestion
Return values
stringhandleReportAction()
    protected
                    handleReportAction(UuidV4 $uuid) : ResponseInterface
    Parameters
- $uuid : UuidV4
Return values
ResponseInterfaceisSystemMaintainer()
    protected
                    isSystemMaintainer() : bool
    Return values
boolmutateReportAction()
    protected
                    mutateReportAction(Scope $scope, MutationSuggestion $suggestion, string ...$initiators) : ResponseInterface
    Parameters
- $scope : Scope
- $suggestion : MutationSuggestion
- $initiators : string
Return values
ResponseInterfacemuteReportAction()
    protected
                    muteReportAction(string ...$summaries) : ResponseInterface
    Parameters
- $summaries : string
Return values
ResponseInterfaceresolveReportUuids()
    protected
                    resolveReportUuids(Report ...$reports) : array<string|int, mixed>
    Parameters
- $reports : Report