getRealms() public method

Get list realms
public getRealms ( ) : array
return array
示例#1
0
 /**
  * Get list realms
  *
  * @return array
  */
 public function managerGetRealms()
 {
     $theRealms = [];
     foreach ($this->realmManager->getRealms() as $realm) {
         /* @var $realm \Thruway\Realm */
         $theRealms[] = ["name" => $realm->getRealmName()];
     }
     return [$theRealms];
 }
示例#2
0
 public function managerGetRealms()
 {
     $theRealms = [];
     /** @var $realm Realm */
     foreach ($this->realmManager->getRealms() as $realm) {
         $theRealms[] = ["name" => $realm->getRealmName()];
     }
     return array($theRealms);
 }