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