Exemple #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];
 }
Exemple #2
0
 public function managerGetRealms()
 {
     $theRealms = [];
     /** @var $realm Realm */
     foreach ($this->realmManager->getRealms() as $realm) {
         $theRealms[] = ["name" => $realm->getRealmName()];
     }
     return array($theRealms);
 }
 public function testWAMP1ValidRealmName()
 {
     $this->assertFalse(\Thruway\RealmManager::validRealmName("WAMP1"));
 }