PHP Класс Contao\CoreBundle\EventListener\ContainerScopeListener

Устаревший: Deprecated since Contao 4.2, to be removed in Contao 5.0; use the _scope request attribute instead
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container ) Constructor.
onKernelFinishRequest ( Symfony\Component\HttpKernel\Event\FinishRequestEvent $event ) Leaves the container scope when finishing the request.
onKernelRequest ( GetResponseEvent $event ) Enters the container scope when a route has been found.

Приватные методы

Метод Описание
addContaoScopesIfNotSet ( ) Adds the Contao scopes to the container.
getScopeFromEvent ( KernelEvent $event ) : string | null Returns the scope from the event request.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
$container Symfony\Component\DependencyInjection\ContainerInterface

onKernelFinishRequest() публичный Метод

Leaves the container scope when finishing the request.
public onKernelFinishRequest ( Symfony\Component\HttpKernel\Event\FinishRequestEvent $event )
$event Symfony\Component\HttpKernel\Event\FinishRequestEvent

onKernelRequest() публичный Метод

Enters the container scope when a route has been found.
public onKernelRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent