public function onKernelRequest(GetResponseEvent $event)
    {
        $headers = $event->getRequest()->headers;

        if (!$headers->has(self::HEADER_NAME)) {
            return;
        }

        $this->requestId->set($headers->get(self::HEADER_NAME, null, true), true);
    }
public function onKernelRequest(GetResponseEvent $event)
    {
        $headers = $event->getRequest()->headers;

        if (!$headers->has(self::HEADER_NAME)) {
            return;
        }

        $this->requestId->set($headers->get(self::HEADER_NAME, null, true), true);
    }
public function onKernelRequest ( GetResponseEvent $ event ) { $ headers = $ event -> getRequest ( ) -> headers ; if ( ! $ headers -> has ( self :: HEADER_NAME ) ) { return ; } $ this -> requestId -> set ( $ headers -> get ( self :: HEADER_NAME , null , true ) , true ) ; }
If present, reads the request ID from the appropriate header and sets it on a RequestId instance.

@param GetResponseEvent $event
If present reads the request ID from the appropriate header and sets it on a RequestId instance .