enabled = $settings[E::SHORT_NAME . '_enable'] ?? FALSE; $this->logging = $settings[E::SHORT_NAME . '_logging'] ?? FALSE; $this->mlmmjHost = $settings[E::SHORT_NAME . '_mlmmj_host'] ?? throw new \Exception('No mlmmj host set'); $this->mlmmjToken = $settings[E::SHORT_NAME . '_mlmmj_token'] ?? throw new \Exception('No mlmmj token set'); $this->mlmmjPort = $settings[E::SHORT_NAME . '_mlmmj_port'] ?? 443; $this->dovecotHost = $settings[E::SHORT_NAME . '_dovecot_host'] ?? throw new \Exception('No dovecot host set'); $this->dovecotToken = $settings[E::SHORT_NAME . '_dovecot_token'] ?? throw new \Exception('No dovecot token set'); $this->dovecotPort = $settings[E::SHORT_NAME . '_dovecot_port'] ?? 443; $this->mlmmjApi = MailingListApi::getInstance(); } }