Mark Dain
I'm not an expert but I think you need adapter classes for that. For me, 'db' returns an instance of MySQLi, so I'd need to shim that or switch to PDO? I didn't do anything wit sessions but I found you can pass data back via an attribute so after I parse the Authorization header, I set a user ID so the controller can use that value;
slimframework.com/... (scroll to bottom "Passing variables"). A quick search I found this
github.com/akrabat... which seems idiomatic?