PHP Class Nelmio\SecurityBundle\ContentSecurityPolicy\DirectiveSet

Datei anzeigen Open project: nelmio/NelmioSecurityBundle Class Usage Examples

Public Methods

Method Description
__construct ( PolicyManager $policyManager )
buildHeaderValue ( Request $request, array $signatures = null )
fromConfig ( PolicyManager $policyManager, array $config, $kind )
getDirective ( $name )
getNames ( )
setDirective ( $name, $value )
setDirectives ( array $directives )
setLevel1Fallback ( $bool )

Private Methods

Method Description
canNotBeFallbackedByDefault ( $name, $value )
checkDirectiveName ( $name )

Method Details

__construct() public method

public __construct ( PolicyManager $policyManager )
$policyManager PolicyManager

buildHeaderValue() public method

public buildHeaderValue ( Request $request, array $signatures = null )
$request Symfony\Component\HttpFoundation\Request
$signatures array

fromConfig() public static method

public static fromConfig ( PolicyManager $policyManager, array $config, $kind )
$policyManager PolicyManager
$config array

getDirective() public method

public getDirective ( $name )

getNames() public static method

public static getNames ( )

setDirective() public method

public setDirective ( $name, $value )

setDirectives() public method

public setDirectives ( array $directives )
$directives array

setLevel1Fallback() public method

public setLevel1Fallback ( $bool )