Slim 3: how to access settings?
You can access settings route callables via $this
$modulesSettings = $this->get('settings')['modules']['local'];
For more information read here
You can get settings like this:
$container = $app->getContainer();
$settings = $container->get('settings');
The address of the SLIM 3 configuration file is pro/src/settings.php, and you can add additional settings; In any route you can access them like this:
var_dump($this->get('settings')['logger']);