/**
  * {@inheritdoc}
  */
 public function getAuthority()
 {
     $user = $this->getUserInfo();
     $host = $this->host->getUriComponent();
     $port = $this->port->getUriComponent();
     return $user . $host . $port;
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  */
 public function getBaseUrl()
 {
     $scheme = $this->scheme->getUriComponent();
     $user = $this->user->getUriComponent();
     $pass = $this->pass->getUriComponent();
     $host = $this->host->getUriComponent();
     $port = $this->port->getUriComponent();
     $user .= $pass;
     if ('' != $user) {
         $user .= '@';
     }
     if ('' != $host && '' == $scheme) {
         $scheme = '//';
     }
     return $scheme . $user . $host . $port;
 }