PHP 클래스 Networking\InitCmsBundle\EventListener\AdminToolbarListener

The onKernelResponse method must be connected to the kernel.response event. The Admin Toolbar is only injected on well-formed HTML (with a proper tag). This means that the Admin Toolbar is never included in sub-requests or ESI requests.
저자: Yorkie Chadwick ([email protected])
상속: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: networking/init-cms-bundle

보호된 프로퍼티들

프로퍼티 타입 설명
$authorizationChecker Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
$mode integer
$position string
$twig Twig_Environment

공개 메소드들

메소드 설명
__construct ( Twig_Environment $twig, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $securityContext, $mode = self::ENABLED, $position = 'top' )
getSubscribedEvents ( )
isEnabled ( )
onKernelResponse ( FilterResponseEvent $event )

보호된 메소드들

메소드 설명
injectToolbar ( Response $response, Request $request ) Injects the admin toolbar into the given Response.

메소드 상세

__construct() 공개 메소드

public __construct ( Twig_Environment $twig, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $securityContext, $mode = self::ENABLED, $position = 'top' )
$twig Twig_Environment
$securityContext Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

injectToolbar() 보호된 메소드

Injects the admin toolbar into the given Response.
protected injectToolbar ( Response $response, Request $request )
$response Symfony\Component\HttpFoundation\Response
$request Symfony\Component\HttpFoundation\Request

isEnabled() 공개 메소드

public isEnabled ( )

onKernelResponse() 공개 메소드

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

프로퍼티 상세

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

protected AuthorizationCheckerInterface,Symfony\Component\Security\Core\Authorization $authorizationChecker
리턴 Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface

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

protected int $mode
리턴 integer

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

protected string $position
리턴 string

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

protected Twig_Environment $twig
리턴 Twig_Environment