src/EventListener/RequestListener.php
public function onKernelRequest(GetResponseEvent $event) {
		if (HttpKernel::MASTER_REQUEST != $event->getRequestType()) {
			return;
		}

		if ($event->getRequest()->headers->has('x-amz-sns-message-type')) {
			$result = $this->handleSnsNotifications($event);
			$event->setResponse(new Response($result, 200));
		}

		if ($event->getRequest()->headers->has('iron-message-id')) {
			$result = $this->handleIronMqNotifications($event);
			$event->setResponse(new Response($result, 200));
		}
	}
public function onKernelRequest(GetResponseEvent $event) {
		if (HttpKernel::MASTER_REQUEST != $event->getRequestType()) {
			return;
		}

		if ($event->getRequest()->headers->has('x-amz-sns-message-type')) {
			$result = $this->handleSnsNotifications($event);
			$event->setResponse(new Response($result, 200));
		}

		if ($event->getRequest()->headers->has('iron-message-id')) {
			$result = $this->handleIronMqNotifications($event);
			$event->setResponse(new Response($result, 200));
		}
	}
public function onKernelRequest ( GetResponseEvent $ event ) { if ( HttpKernel :: MASTER_REQUEST != $ event -> getRequestType ( ) ) { return ; } if ( $ event -> getRequest ( ) -> headers -> has ( 'x-amz-sns-message-type' ) ) { $ result = $ this -> handleSnsNotifications ( $ event ) ; $ event -> setResponse ( new Response ( $ result , 200 ) ) ; } if ( $ event -> getRequest ( ) -> headers -> has ( 'iron-message-id' ) ) { $ result = $ this -> handleIronMqNotifications ( $ event ) ; $ event -> setResponse ( new Response ( $ result , 200 ) ) ; } }
Kernel Request Event Handler for QPush Notifications

@param GetResponseEvent $event The Kernel Request's GetResponseEvent
Kernel Request Event Handler for QPush Notifications