PHP Class Nelmio\SecurityBundle\Twig\TokenParser\AbstractCSPParser

Inheritance: extends Twig_TokenParser
Mostra file Open project: nelmio/NelmioSecurityBundle Class Usage Examples

Protected Properties

Property Type Description
$shaComputer

Public Methods

Method Description
__construct ( ShaComputer $shaComputer, $tag, $directive )
decideCSPScriptEnd ( Twig_Token $token )
getTag ( )
parse ( Twig_Token $token )

Protected Methods

Method Description
computeSha ( $data )

Method Details

__construct() public method

public __construct ( ShaComputer $shaComputer, $tag, $directive )
$shaComputer Nelmio\SecurityBundle\ContentSecurityPolicy\ShaComputer

computeSha() abstract protected method

abstract protected computeSha ( $data )

decideCSPScriptEnd() public method

public decideCSPScriptEnd ( Twig_Token $token )
$token Twig_Token

getTag() public method

public getTag ( )

parse() public method

public parse ( Twig_Token $token )
$token Twig_Token

Property Details

$shaComputer protected_oe property

protected $shaComputer