Closed urshofer closed 8 years ago
Excellent point! Thanks!
For anyone else checking this, this is how you initialize it:
$container = new \Slim\Container(['settings'=>['determineRouteBeforeAppMiddleware'=>true]]);
Fixed in e5383b7, merged into the 3.x branch and released in 2.0.0-alpha+005.
Thanks for opening the issue. Sorry I didn't document this requirement at all :-(
I'd like just to note that for slim 3.x, the parameter
determineRouteBeforeAppMiddleware
need to be set totrue
during startup, otherwise the auth middleware cannot determine the current route. It should be stated in the docs.Thanks for your great work! Urs