original_string: public function onKernelRequest(GetResponseEvent $event)
      {
          $request = $event->getRequest();
          foreach ($this->formats as $format => $mimeTypes) {
              $request->setFormat($format, $mimeTypes);
          }
      }
code: public function onKernelRequest(GetResponseEvent $event)
      {
          $request = $event->getRequest();
          foreach ($this->formats as $format => $mimeTypes) {
              $request->setFormat($format, $mimeTypes);
          }
      }
code_tokens: public function onKernelRequest ( GetResponseEvent $ event ) { $ request = $ event -> getRequest ( ) ; foreach ( $ this -> formats as $ format => $ mimeTypes ) { $ request -> setFormat ( $ format , $ mimeTypes ) ; } }
docstring: Adds request formats.
docstring_tokens: Adds request formats .