コード例 #1
0
ファイル: Site.php プロジェクト: Briareos/Undine
 /**
  * @return bool
  */
 public function hasHttpCredentials()
 {
     return $this->httpCredentials->present();
 }
コード例 #2
0
ファイル: Session.php プロジェクト: Briareos/Undine
 /**
  * @return string[]|null
  */
 public function getAuthData()
 {
     return $this->httpCredentials && $this->httpCredentials->present() ? [$this->httpCredentials->getUsername(), $this->httpCredentials->getPassword()] : null;
 }