PHP 클래스 Nelmio\SecurityBundle\EventListener\ContentSecurityPolicyListener

상속: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: nelmio/NelmioSecurityBundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$compatHeaders
$enforce
$hosts
$nonce
$nonceGenerator
$report
$sha
$shaComputer

공개 메소드들

메소드 설명
__construct ( DirectiveSet $report, DirectiveSet $enforce, NonceGenerator $nonceGenerator, ShaComputer $shaComputer, $compatHeaders = true, array $hosts = [], array $contentTypes = [] )
addScript ( $html )
addSha ( $directive, $sha )
addStyle ( $html )
getEnforcement ( )
getNonce ( )
getReport ( )
getSubscribedEvents ( )
onKernelRequest ( GetResponseEvent $event )
onKernelResponse ( FilterResponseEvent $e )

비공개 메소드들

메소드 설명
buildHeaders ( Request $request, DirectiveSet $directiveSet, $reportOnly, $compatHeaders, array $signatures = null )

메소드 상세

__construct() 공개 메소드

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

addScript() 공개 메소드

public addScript ( $html )

addSha() 공개 메소드

public addSha ( $directive, $sha )

addStyle() 공개 메소드

public addStyle ( $html )

getEnforcement() 공개 메소드

public getEnforcement ( )

getNonce() 공개 메소드

public getNonce ( )

getReport() 공개 메소드

public getReport ( )

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

onKernelRequest() 공개 메소드

public onKernelRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent

onKernelResponse() 공개 메소드

public onKernelResponse ( FilterResponseEvent $e )
$e Symfony\Component\HttpKernel\Event\FilterResponseEvent

프로퍼티 상세

$compatHeaders 보호되어 있는 프로퍼티

protected $compatHeaders

$enforce 보호되어 있는 프로퍼티

protected $enforce

$hosts 보호되어 있는 프로퍼티

protected $hosts

$nonce 보호되어 있는 프로퍼티

protected $nonce

$nonceGenerator 보호되어 있는 프로퍼티

protected $nonceGenerator

$report 보호되어 있는 프로퍼티

protected $report

$sha 보호되어 있는 프로퍼티

protected $sha

$shaComputer 보호되어 있는 프로퍼티

protected $shaComputer