FilterControllerEvent
        
        extends KernelEvent
    
    
            
            in package
            
        
    
    
    
        
            Base class for events thrown in the HttpKernel component.
Tags
Table of Contents
- $controller : mixed
- $kernel : mixed
- $propagationStopped : mixed
- $request : mixed
- $requestType : mixed
- __construct() : mixed
- getController() : callable
- Returns the current controller.
- getKernel() : HttpKernelInterface
- Returns the kernel in which this event was thrown.
- getRequest() : Request
- Returns the request the kernel is currently processing.
- getRequestType() : int
- Returns the request type the kernel is currently processing.
- isMasterRequest() : bool
- Checks if this is a master request.
- isPropagationStopped() : bool
- setController() : mixed
- stopPropagation() : mixed
Properties
$controller
    private
        mixed
    $controller
    
        
        
    
$kernel
    private
        mixed
    $kernel
    
        
        
    
$propagationStopped
    private
        mixed
    $propagationStopped
     = false
        
        
    
$request
    private
        mixed
    $request
    
        
        
    
$requestType
    private
        mixed
    $requestType
    
        
        
    
Methods
__construct()
    public
                    __construct(HttpKernelInterface $kernel, callable $controller, Request $request, int|null $requestType) : mixed
    
        Parameters
- $kernel : HttpKernelInterface
- $controller : callable
- $request : Request
- $requestType : int|null
- 
                    The request type the kernel is currently processing; one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST 
Return values
mixed —getController()
Returns the current controller.
    public
                    getController() : callable
    
    
    
        Return values
callable —getKernel()
Returns the kernel in which this event was thrown.
    public
                    getKernel() : HttpKernelInterface
    
    
    
        Return values
HttpKernelInterface —getRequest()
Returns the request the kernel is currently processing.
    public
                    getRequest() : Request
    
    
    
        Return values
Request —getRequestType()
Returns the request type the kernel is currently processing.
    public
                    getRequestType() : int
    
    
    
        Return values
int —One of HttpKernelInterface::MASTER_REQUEST and HttpKernelInterface::SUB_REQUEST
isMasterRequest()
Checks if this is a master request.
    public
                    isMasterRequest() : bool
    
    
    
        Return values
bool —True if the request is a master request
isPropagationStopped()
    public
                    isPropagationStopped() : bool
    
    
    
    Tags
Return values
bool —Whether propagation was already stopped for this event
setController()
    public
                    setController(callable $controller) : mixed
        
        Parameters
- $controller : callable
Return values
mixed —stopPropagation()
    public
                    stopPropagation() : mixed