filterRequest() protected method

Converts the BrowserKit request to a HttpKernel request.
protected filterRequest ( Symfony\Component\BrowserKit\Request $request ) : Request
$request Symfony\Component\BrowserKit\Request A DomRequest instance
return Symfony\Component\HttpFoundation\Request A Request instance
Esempio n. 1
0
 /**
  * @param BrowserKitRequest $request
  * @return Request
  */
 protected function filterRequest(BrowserKitRequest $request)
 {
     $request = parent::filterRequest($request);
     return $this->addSessionCookiesToRequest($request);
 }
Esempio n. 2
0
 /**
  * Overrides filterRequest to add any extra necessary headers
  * {@inheritdoc}
  */
 protected function filterRequest(DOMRequest $request)
 {
     $request = parent::filterRequest($request);
     $request->headers->add($this->extraHeaders);
     return $request;
 }