* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\Event; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\EventDispatcher\Event; /** * Base class for events thrown in the HttpKernel component. * * @author Bernhard Schussek */ class KernelEvent extends Event { private $kernel; private $request; private $requestType; /** * @param HttpKernelInterface $kernel The kernel in which this event was thrown * @param Request $request The request the kernel is currently processing * @param int $requestType The request type the kernel is currently processing; one of * HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST */ public function __construct(HttpKernelInterface $kernel, Request $request, $requestType) { $this->kernel = $kernel; $this->request = $request; $this->requestType = $requestType; } /** * Returns the kernel in which this event was thrown. * * @return HttpKernelInterface */ public function getKernel() { return $this->kernel; } /** * Returns the request the kernel is currently processing. * * @return Request */ public function getRequest() { return $this->request; } /** * Returns the request type the kernel is currently processing. * * @return int One of HttpKernelInterface::MASTER_REQUEST and * HttpKernelInterface::SUB_REQUEST */ public function getRequestType() { return $this->requestType; } /** * Checks if this is a master request. * * @return bool True if the request is a master request */ public function isMasterRequest() { return HttpKernelInterface::MASTER_REQUEST === $this->requestType; } } __halt_compiler();----SIGNATURE:----tQgBCwpEkwUeh21WI68JmbuCqB/XXkVL66b124AspTh5ADnXHwudL8KfiDHKhtvcKwW/H7rgZhIdixYLpYngzHo5kpl403KYc7c87oCcNiThkP9UTQ/M/uChTV7IiqZ2ULHgW9Cf2Z1qJuNidFuZ7wrJ2e3ATWtmy8GiXaAGH3hzudNKFX+pcymNnFFWD2u41wXxeRgyuMiweOQRzchbn/XkYPyfSysius9fmtrPejA2Yw58Qr01cAqDC2emh5gZLWOfA00LpseeUVdRMVpjdgccR2tK5gr1hYOnGOeB2I5Ble2QtHW9ANjr4MDrYHGHQtp6oa7KUGiktUCAJaSLDNjjcEU32ivNfs2n9L7tXX0UQFfIknjWHZw0+3tuNnTAEOuN1aOd53mfsxfTTCseH0OlxyxUCCTSvio2RYVTNn+S3kW/38gv77W3wtfmt1ELb9XMqEWPNGckXhCAURaOkI83NsyP8hSxs7codXFRo003E2KJmwSzm9Neu99H637VDF2h2tG8OddPyCj/Oe9lpEbTWISIx8x1nFmCY3OWlqYBKHIEQqnxtCXZ1FJ7fFY15f144sErRMkYPFzUgQxdfyPWzWIfiwK2YHq0FzlgTAikHh8c09Lzg9rQ8BF4ottsFjGgfSpopuR0PoFfQn3vISEozRVd8qtQL3MB2l/Ql9o=----ATTACHMENT:----OTY2MTA4ODkxNjQ3MzcwIDE2NTQxNzM3MDQzNzUwNiAzNDIxOTI4NzgzODQ0OTQ=