public static function create($config = null)
    {
        if ($config === null) {
            return self::getStandard();
        }
        if (is_array($config) || ($config instanceof Config)) {
            return new Env($config);
        }
        if ($config instanceof Env) {
            return $config;
        }
        $message = 'Factory accepts Env, Config, array or NULL';
        throw new InvalidConfig('Env', $message, 0, null, __NAMESPACE__);
    }
public static function create($config = null)
    {
        if ($config === null) {
            return self::getStandard();
        }
        if (is_array($config) || ($config instanceof Config)) {
            return new Env($config);
        }
        if ($config instanceof Env) {
            return $config;
        }
        $message = 'Factory accepts Env, Config, array or NULL';
        throw new InvalidConfig('Env', $message, 0, null, __NAMESPACE__);
    }
public static function create ( $ config = null ) { if ( $ config === null ) { return self :: getStandard ( ) ; } if ( is_array ( $ config ) || ( $ config instanceof Config ) ) { return new Env ( $ config ) ; } if ( $ config instanceof Env ) { return $ config ; } $ message = 'Factory accepts Env, Config, array or NULL' ; throw new InvalidConfig ( 'Env' , $ message , 0 , null , __NAMESPACE__ ) ; }
Creates an environment wrapper

@param \axy\env\Env|\axy\env\Config|array $config
@return \axy\env\Env
@throws \axy\errors\InvalidConfig
Creates an environment wrapper