Exemple #1
0
 /**
  * Return a new response from the application.
  *
  * @param  string  $content
  * @param  int     $status
  * @param  array   $headers
  * @return \Symfony\Component\HttpFoundation\Response|\Laravel\Lumen\Http\ResponseFactory
  */
 function response($content = '', $status = 200, array $headers = array())
 {
     $factory = new Laravel\Lumen\Http\ResponseFactory(Container::getInstance()->make('app'));
     if (func_num_args() === 0) {
         return $factory;
     }
     return $factory->make($content, $status, $headers);
 }
 /**
  * Return a new response from the application.
  *
  * @param  string  $content
  * @param  int     $status
  * @param  array   $headers
  * @return \Symfony\Component\HttpFoundation\Response|\Laravel\Lumen\Http\ResponseFactory
  */
 function response($content = '', $status = 200, array $headers = [])
 {
     $factory = new Laravel\Lumen\Http\ResponseFactory();
     if (func_num_args() === 0) {
         return $factory;
     }
     return $factory->make($content, $status, $headers);
 }