src/Environment/FactoryEnvironment.php
static function of($alias, $defaults = null)
    {
        $EnvClass = static::createEnvInstance($alias);
        if (null !== $defaults)
            $EnvClass->import($defaults);
        
        
        return $EnvClass;
    }
static function of($alias, $defaults = null)
    {
        $EnvClass = static::createEnvInstance($alias);
        if (null !== $defaults)
            $EnvClass->import($defaults);
        
        
        return $EnvClass;
    }
static function of ( $ alias , $ defaults = null ) { $ EnvClass = static :: createEnvInstance ( $ alias ) ; if ( null !== $ defaults ) $ EnvClass -> import ( $ defaults ) ; return $ EnvClass ; }
Factory To Settings Environment

callable:
string|BaseEnv function()
return alias or env instance

@param string|callable $alias
@param \Traversable    $defaults

@throws \Exception
@return EnvBase
Factory To Settings Environment