Hi,
It's now impossible to do something like
$app->register('myfunction', function($arg1, $arg2) {
var_dump($arg1); // return NULL
})
$args are not passed to function
I suggest to change App.php, at line 95 from:
$instance = $closure();
to
$instance = call_user_func_array($closure,func_get_args());
Giving the possibility to use $app->myfunction("argument1","argument2");
Thks by advance!
Hi,
It's now impossible to do something like
$args are not passed to function
I suggest to change App.php, at line 95 from:
$instance = $closure();to
$instance = call_user_func_array($closure,func_get_args());Giving the possibility to use
$app->myfunction("argument1","argument2");Thks by advance!