public static function instance(array $options = array(), $forceNew = false)
    {
        if (self::$instance === null || $forceNew === true) {
            self::$instance = new Endpoint($options);
        } else {
            self::$instance->setConfig($options);
        }
        return self::$instance;
    }
public static function instance(array $options = array(), $forceNew = false)
    {
        if (self::$instance === null || $forceNew === true) {
            self::$instance = new Endpoint($options);
        } else {
            self::$instance->setConfig($options);
        }
        return self::$instance;
    }
public static function instance ( array $ options = array ( ) , $ forceNew = false ) { if ( self :: $ instance === null || $ forceNew === true ) { self :: $ instance = new Endpoint ( $ options ) ; } else { self :: $ instance -> setConfig ( $ options ) ; } return self :: $ instance ; }
Get a singleton instance of the Teleport Endpoint listener.

@param array $options An associative array of Teleport Config options for the instance.
@param bool  $forceNew If true, a new instance of Teleport is created and replaces the existing singleton.

@return HttpServer
Get a singleton instance of the Teleport Endpoint listener .