eZ\Publish\Core\MVC\Symfony\Event\PostSiteAccessMatchEvent::getRequestType PHP Method

getRequestType() public method

Returns the request type the kernel is currently processing.
public getRequestType ( ) : integer
return integer One of HttpKernelInterface::MASTER_REQUEST and HttpKernelInterface::SUB_REQUEST
    public function getRequestType()
    {
        return $this->requestType;
    }

Usage Example

 public function onSiteAccessMatch(PostSiteAccessMatchEvent $event)
 {
     if ($event->getRequestType() !== HttpKernelInterface::MASTER_REQUEST) {
         return;
     }
     $this->resetDynamicSettings();
 }
All Usage Examples Of eZ\Publish\Core\MVC\Symfony\Event\PostSiteAccessMatchEvent::getRequestType