protected function loadConfigFile($file)
{
if (in_array($file, $this->loadedConfigs)) {
$this['log']->info(sprintf('Skipping: Already loaded config "%s"', $file));
return;
}
$file = (string) $file;
$app = $this;
$config = function () use($file, $app) {
include $file;
};
$config();
$this['log']->info(sprintf('Loaded config "%s"', $file));
$this->loadedConfigs[] = $file;
}