예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 /**
  * 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);
 }