src/KPhoen/Provider/NegotiationServiceProvider.php
public function onEarlyKernelRequest(GetResponseEvent $event)
    {
        $request = $event->getRequest();
        foreach ($this->customFormats as $name => $mimeTypes) {
            $request->setFormat($name, $mimeTypes);
        }
    }
public function onEarlyKernelRequest(GetResponseEvent $event)
    {
        $request = $event->getRequest();
        foreach ($this->customFormats as $name => $mimeTypes) {
            $request->setFormat($name, $mimeTypes);
        }
    }
public function onEarlyKernelRequest ( GetResponseEvent $ event ) { $ request = $ event -> getRequest ( ) ; foreach ( $ this -> customFormats as $ name => $ mimeTypes ) { $ request -> setFormat ( $ name , $ mimeTypes ) ; } }
Update the request with the given custom formats.

@param GetResponseEvent $event The event.
Update the request with the given custom formats .