/** * Convert a BrowserKit request into a Illuminate request. * * @param \Symfony\Component\BrowserKit\Request $request * @return \Illuminate\Http\Request */ protected function filterRequest(DomRequest $request) { $httpRequest = Application::onRequest('create', $this->getRequestParameters($request)); $httpRequest->setSessionStore($this->kernel['session.store']); $httpRequest->files->replace($this->filterFiles($httpRequest->files->all())); return $httpRequest; }
/** * Call a method on the default request class. * * @param string $method * @param array $parameters * @return mixed * @static */ public static function onRequest($method, $parameters = array()) { return \Illuminate\Foundation\Application::onRequest($method, $parameters); }