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
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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