lib/Bob/Application.php
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;
    }
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;
    }
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 ; }
# Load config file in its own scope
# Load config file in its own scope