You are viewing a single comment's thread from:

RE: PHP Tricks: Access control bypass

in PHP2 years ago

Just found a use case of this.

$routes = \Route::getRoutes();
$caller = fn() => $this->routes;
dd($caller->call($routes)['GET']);

Very useful, thank you.