Hello fellow slim’ers!
Im building class for auhentication used also as a middleware. But I have trouble with next. To simplify work i put $req, $res and $next in class properties, to call methods without parameters ex. sendUnauthorizedError() instead of sendUnautorizedError($res), but problem happened when i get to respond with $next($res,$req). How to call it?