src/Network/Connection.php
private function parseUrl($url)
    {
        $parsed = parse_url($url);
        if ($parsed === false) {
            throw new ConnectionException('Unable to parse url '. $url);
        }
        array_push($this->hosts, $parsed + ['port' => '61613', 'scheme' => 'tcp']);
    }
private function parseUrl($url)
    {
        $parsed = parse_url($url);
        if ($parsed === false) {
            throw new ConnectionException('Unable to parse url '. $url);
        }
        array_push($this->hosts, $parsed + ['port' => '61613', 'scheme' => 'tcp']);
    }
private function parseUrl ( $ url ) { $ parsed = parse_url ( $ url ) ; if ( $ parsed === false ) { throw new ConnectionException ( 'Unable to parse url ' . $ url ) ; } array_push ( $ this -> hosts , $ parsed + [ 'port' => '61613' , 'scheme' => 'tcp' ] ) ; }
Parse a broker URL

@param string $url Broker URL
@return void
@throws ConnectionException
Parse a broker URL