Nelmio\SecurityBundle\Twig\NelmioCSPTwigExtension::__construct PHP Method

__construct() public method

public __construct ( ContentSecurityPolicyListener $listener, ShaComputer $shaComputer )
$listener Nelmio\SecurityBundle\EventListener\ContentSecurityPolicyListener
$shaComputer Nelmio\SecurityBundle\ContentSecurityPolicy\ShaComputer
    public function __construct(ContentSecurityPolicyListener $listener, ShaComputer $shaComputer)
    {
        $this->listener = $listener;
        $this->shaComputer = $shaComputer;
    }