PHP 클래스 Contao\CoreBundle\EventListener\ContainerScopeListener

사용 중단: Deprecated since Contao 4.2, to be removed in Contao 5.0; use the _scope request attribute instead
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__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