public static function loadEnvironment($env = null)
    {
        $env = $env ? $env : static::$env;

        foreach((array) static::$loadedPaths as $path){
            if(is_dir($path.DS.$env)){
                self::load($path.DS.$env);
            }
        }
    }
public static function loadEnvironment($env = null)
    {
        $env = $env ? $env : static::$env;

        foreach((array) static::$loadedPaths as $path){
            if(is_dir($path.DS.$env)){
                self::load($path.DS.$env);
            }
        }
    }
public static function loadEnvironment ( $ env = null ) { $ env = $ env ? $ env : static :: $ env ; foreach ( ( array ) static :: $ loadedPaths as $ path ) { if ( is_dir ( $ path . DS . $ env ) ) { self :: load ( $ path . DS . $ env ) ; } } }
Load an environment defined or not

@param null $env
@return void
Load an environment defined or not