What about my own approach of using a custom made ConfigClass? You then should just add it in the needed place and use it.
namespace Your\Namespace\YourConfig;
class YourConfig {
private $energy_config;
public function __construct() {
$this->energy_config = array(
'update_frequency' => 10,
'energy_added' => 10,
'energy_maximum' => 200,
);
}
}
Later if you need the energy_config values, just add in the needed class use statement:
use Your\Namespace\YourConfig;
...
public function foo() {
$config = new YourConfig();
// use your config values
}
This is just my idea, hope it helps until someone gives a truly great solution :)