KernelEvent::isMasterRequest()

bool isMasterRequest() Checks if this is a master request. Return Value bool True if the request is a master request

KernelEvent::getRequestType()

int getRequestType() Returns the request type the kernel is currently processing. Return Value int One of HttpKernelInterface::MASTERREQUEST and HttpKernelInterface::SUBREQUEST

KernelEvent::getRequest()

Request getRequest() Returns the request the kernel is currently processing. Return Value Request

KernelEvent::getKernel()

HttpKernelInterface getKernel() Returns the kernel in which this event was thrown. Return Value HttpKernelInterface

KernelEvent

class KernelEvent extends Event Base class for events thrown in the HttpKernel component. Methods bool isPropagationStopped() Returns whether further event listeners should be triggered. from Event stopPropagation() Stops the propagation of the event to further event listeners. from Event setDispatcher(EventDispatcherInterface $dispatcher) deprecated Stores the EventDispatcher that dispatches this Event. from Event EventDispatcherInterface getDispatcher() deprecated Returns t

Kernel::unserialize()

unserialize($data) Parameters $data

Kernel::terminate()

terminate(Request $request, Response $response) Terminates a request/response cycle. Should be called after sending the response and before shutting down the kernel. Parameters Request $request A Request instance Response $response A Response instance

Kernel::stripComments()

static string stripComments(string $source) Removes comments from a PHP source string. We don't use the PHP phpstripwhitespace() function as we want the content to be readable and well-formatted. Parameters string $source A PHP string Return Value string The PHP string with the comments removed

Kernel::shutdown()

shutdown() Shutdowns the kernel. This method is mainly useful when doing functional testing.

Kernel::setClassCache()

setClassCache(array $classes) Used internally. Parameters array $classes