public static function init($locale, $environment, $version)
    {
        $envFilename = Registry::get('applicationPath') . '/.env';
        if (file_exists($envFilename)) {
            $env = Ini::parse($envFilename, true, $locale . '-' . $environment . '-' . $version, 'common', false);
            $env = self::mergeEnvVariables($env);
        } else {
            $env = new \StdClass();
        }
        self::$data = Ini::bindArrayToObject($env);
    }
public static function init($locale, $environment, $version)
    {
        $envFilename = Registry::get('applicationPath') . '/.env';
        if (file_exists($envFilename)) {
            $env = Ini::parse($envFilename, true, $locale . '-' . $environment . '-' . $version, 'common', false);
            $env = self::mergeEnvVariables($env);
        } else {
            $env = new \StdClass();
        }
        self::$data = Ini::bindArrayToObject($env);
    }
public static function init ( $ locale , $ environment , $ version ) { $ envFilename = Registry :: get ( 'applicationPath' ) . '/.env' ; if ( file_exists ( $ envFilename ) ) { $ env = Ini :: parse ( $ envFilename , true , $ locale . '-' . $ environment . '-' . $ version , 'common' , false ) ; $ env = self :: mergeEnvVariables ( $ env ) ; } else { $ env = new \ StdClass ( ) ; } self :: $ data = Ini :: bindArrayToObject ( $ env ) ; }
reads the .env file, merges the environment on top of the optional .env file, returns the merged "config"
reads the . env file merges the environment on top of the optional . env file returns the merged config