Nelmio\SecurityBundle\Twig\TokenParser\AbstractCSPParser::__construct PHP Method

__construct() public method

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

Usage Example

 public function __construct(ShaComputer $shaComputer)
 {
     parent::__construct($shaComputer, 'cspscript', 'script-src');
 }
All Usage Examples Of Nelmio\SecurityBundle\Twig\TokenParser\AbstractCSPParser::__construct