I want to get the name of the current I route in a middleware class. Previously (in Slim 2.*) you could fetch the current route like so:
$route = $this->ap
Apparently you can configure Slim to determine the route before going into the middleware with this setting:
$app = new Slim\App([ 'settings' => [ 'determineRouteBeforeAppMiddleware' => true, ] ]);
I'm not sure what kind of impact this has, but it works for me :)