You are here

public function InMemoryConfig::isReady in Rocket.Chat 8.2

Check if we got everything to connect to a Client.

Return value

bool

Overrides RocketChatConfigInterface::isReady

File

modules/rocket_chat_api/src/RocketChat/InMemoryConfig.php, line 163

Class

InMemoryConfig
Class InMemoryConfig keeps the config in memory.

Namespace

Drupal\rocket_chat_api\RocketChat

Code

public function isReady() {
  return !empty($this->url) && (!empty($this->user) && !empty($this->uid)) && (!empty($this->utk) && !empty($this->password));
}