public function managerGetRealms() { $theRealms = []; foreach ($this->realmManager->getRealms() as $realm) { /* @var $realm \Thruway\Realm */ $theRealms[] = ["name" => $realm->getRealmName()]; } return [$theRealms]; }