I put middleware for authentication in the middleware.php file (app->add(new MyAuth()). In MyAuth class, how do I:
- call the Logger class and the PDO class configured in the dependencies.php file?
- retrieve the key pair (used to decrypt data) that are defined in the settings.php file?
Am I doing this the right way?