Bob\Application::loadConfigFile PHP Method

loadConfigFile() protected method

# Load config file in its own scope
protected loadConfigFile ( $file )
    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;
    }