src/Environment.php
public static function getInstance()
    {
        if (!self::$_instance) {
            self::$_instance = new Environment();
            Configure::write('Environment.initialized', true);
        }

        return self::$_instance;
    }
public static function getInstance()
    {
        if (!self::$_instance) {
            self::$_instance = new Environment();
            Configure::write('Environment.initialized', true);
        }

        return self::$_instance;
    }
public static function getInstance ( ) { if ( ! self :: $ _instance ) { self :: $ _instance = new Environment ( ) ; Configure :: write ( 'Environment.initialized' , true ) ; } return self :: $ _instance ; }
Retrieves the current instance of an environment

@return Josegonzalez\Environments\Environment
Retrieves the current instance of an environment