PHP Class 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.
Show file
Open project: networking/init-cms-bundle
Protected Properties
Public Methods
Method |
Description |
|
__construct ( Twig_Environment $twig, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $securityContext, $mode = self::ENABLED, $position = 'top' ) |
|
|
getSubscribedEvents ( ) |
|
|
isEnabled ( ) |
|
|
onKernelResponse ( FilterResponseEvent $event ) |
|
|
Protected Methods
Method |
Description |
|
injectToolbar ( Response $response, Request $request ) |
Injects the admin toolbar into the given Response. |
|
Method Details
__construct()
public method
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 method
isEnabled()
public method
onKernelResponse()
public method
public onKernelResponse ( FilterResponseEvent $event ) |
$event |
Symfony\Component\HttpKernel\Event\FilterResponseEvent |
|
Property Details
$authorizationChecker protected property
protected AuthorizationCheckerInterface,Symfony\Component\Security\Core\Authorization $authorizationChecker |
return |
Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface |
|
$position protected property
protected string $position |
return |
string |
|
protected Twig_Environment $twig |
return |
Twig_Environment |
|