vlucas / bulletphp

A resource-oriented micro PHP framework
http://bulletphp.com
BSD 3-Clause "New" or "Revised" License
418 stars 50 forks source link

may reversal args that $app->response($1,$2) #82

Closed KatsuoAshimine closed 5 years ago

KatsuoAshimine commented 6 years ago

may revers args.

$app->response("Hello Error!",500);

correct )protected function responseFactory($content=null, $statusCode=null)

mast repair) public function response() { //setter if(func_num_args()>=2){ //2 args setter list($statusCode,$content) = func_get_args();//corrent version list($content,$statusCode) = func_get_args();// after version

netom commented 5 years ago

The App::response() function works like this in the v2 branch, this going to go live in version 2.0.