My routing definition looks like this (using this as reference to have better order in the code):
$app->get('/actor/{id}', 'TMDb\Controller\TMDbController::actorAction');
And this is how my controller looks like:
class TMDbController {
public function actorAction(Request $request, Application $app) { ... }
}
And it worked, but I haven't found the way to get in my action controller the id
value.