call_user_func
laravel/octane
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Call the callback given by the first parameter
call_user_func
(callable
$callback
,
mixed
...
$args
):
mixed
public function
invokeRoute
(
Request $request
,
string $method
,
string $uri
):
Response
{
return
call_user_func
(
$this
->
routes
[
$method
.
$uri
],
$request
);
}
}
src/Concerns/ProvidesRouting.php
}
try {
call_user_func
(
$this
->
callback
);
} catch (
Throwable $e
) {
$this
->
exceptionHandler
->
report
(
$e
);
}
src/Swoole/InvokeTickCallable.php