KernelEvent
class KernelEvent extends Event (View source)
Symfony 6 bridge.
This is a copy of Symfony\Component\HttpKernel\Event\KernelEvent with two changes: adding an ::isMainRequest() method for forward compatibility with Symfony 5.3+, and issuing a deprecation message from ::isMasterRequest().
Methods
No description
Returns the kernel in which this event was thrown.
Returns the request the kernel is currently processing.
Returns the request type the kernel is currently processing.
Checks if this is a master request.
Checks if this is a main request.
Details
__construct(HttpKernelInterface $kernel, Request $request, int|null $requestType)
No description
HttpKernelInterface
getKernel()
Returns the kernel in which this event was thrown.
Request
getRequest()
Returns the request the kernel is currently processing.
int
getRequestType()
Returns the request type the kernel is currently processing.
bool
isMasterRequest()
Checks if this is a master request.
bool
isMainRequest()
Checks if this is a main request.