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
$request->getUri()->getPath()
Get current Route, even in middleware.
middleware