Nelmio\SecurityBundle\EventListener\ContentSecurityPolicyListener::__construct PHP Method

__construct() public method

public __construct ( DirectiveSet $report, DirectiveSet $enforce, NonceGenerator $nonceGenerator, ShaComputer $shaComputer, $compatHeaders = true, array $hosts = [], array $contentTypes = [] )
$report Nelmio\SecurityBundle\ContentSecurityPolicy\DirectiveSet
$enforce Nelmio\SecurityBundle\ContentSecurityPolicy\DirectiveSet
$nonceGenerator Nelmio\SecurityBundle\ContentSecurityPolicy\NonceGenerator
$shaComputer Nelmio\SecurityBundle\ContentSecurityPolicy\ShaComputer
$hosts array
$contentTypes array
    public function __construct(DirectiveSet $report, DirectiveSet $enforce, NonceGenerator $nonceGenerator, ShaComputer $shaComputer, $compatHeaders = true, array $hosts = array(), array $contentTypes = array())
    {
        $this->report = $report;
        $this->enforce = $enforce;
        $this->compatHeaders = $compatHeaders;
        $this->hosts = $hosts;
        $this->contentTypes = $contentTypes;
        $this->nonceGenerator = $nonceGenerator;
        $this->shaComputer = $shaComputer;
    }