How to get the config variables from application.ini in Controller

You can use the below code in the controller and it will return an array of config variables.
$config = $this->getInvokeArg(‘bootstrap’)->getOptions();