framework/RedKiteCms/EventSystem/Listener/Request/QueueListener.php
public function onKernelRequest(GetResponseEvent $event)
    {
        $request = $event->getRequest();
        if ($request->getMethod() == "POST") {
            return $event;
        }

        $token = $this->securityContext->getToken();
        if (null === $token) {
            return $event;
        }

        $data = $request->get("data");
        if (null === $data) {
            if ($this->queueManager->hasQueue()) {
                $content = $this->queueManager->renderQueue();
                $event->setResponse(new Response($content));

                return $event;
            }
        }
    }
public function onKernelRequest(GetResponseEvent $event)
    {
        $request = $event->getRequest();
        if ($request->getMethod() == "POST") {
            return $event;
        }

        $token = $this->securityContext->getToken();
        if (null === $token) {
            return $event;
        }

        $data = $request->get("data");
        if (null === $data) {
            if ($this->queueManager->hasQueue()) {
                $content = $this->queueManager->renderQueue();
                $event->setResponse(new Response($content));

                return $event;
            }
        }
    }
public function onKernelRequest ( GetResponseEvent $ event ) { $ request = $ event -> getRequest ( ) ; if ( $ request -> getMethod ( ) == "POST" ) { return $ event ; } $ token = $ this -> securityContext -> getToken ( ) ; if ( null === $ token ) { return $ event ; } $ data = $ request -> get ( "data" ) ; if ( null === $ data ) { if ( $ this -> queueManager -> hasQueue ( ) ) { $ content = $ this -> queueManager -> renderQueue ( ) ; $ event -> setResponse ( new Response ( $ content ) ) ; return $ event ; } } }
Aligns the site slots

@param GetResponseEvent $event
Aligns the site slots