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.
파일 보기
프로젝트 열기: networking/init-cms-bundle
보호된 프로퍼티들
공개 메소드들
보호된 메소드들
메소드 |
설명 |
|
injectToolbar ( Response $response, Request $request ) |
Injects the admin toolbar into the given Response. |
|
메소드 상세
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()
공개 정적인 메소드
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 |
|
protected string $position |
리턴 |
string |
|
protected Twig_Environment $twig |
리턴 |
Twig_Environment |
|