Within my project, I've created a "core" directory which contains certain classes and methods called throughout the controllers. I've defined a configuration parameters in my bootstrap file like so:
private function loadConfig ()
{
// Bootstrap
$configFile = __DIR__ . '/../config/config.json';
// Create the new object
$config = json_decode ( file_get_contents ( $configFile ) );
// Store it in the Di container
$this->di->setShared ( 'config', $config );
}
I want to be able to access these configuration values in my "core" classes.
What do I do?