Skip to content

Commit b391da8

Browse files
committed
Add oauthbearer_token_refresh_cb config value for setting setOauthbearerTokenRefreshCb
1 parent 867d45f commit b391da8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/rdkafka/RdKafkaContext.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ private function getConf(): Conf
216216
if (isset($this->config['stats_cb'])) {
217217
$this->conf->setStatsCb($this->config['stats_cb']);
218218
}
219+
220+
if (isset($this->config['oauthbearer_token_refresh_cb'])) {
221+
$this->conf->setOauthbearerTokenRefreshCb($this->config['oauthbearer_token_refresh_cb']);
222+
}
219223
}
220224

221225
return $this->conf;

0 commit comments

Comments
 (0)