Config ne rabi bit property classa

pull/41/head
Jurij Podgoršek 2024-01-23 22:04:47 +01:00
parent be14b5c623
commit 6719acdb8e
1 changed files with 1 additions and 8 deletions

View File

@ -17,13 +17,6 @@ class Client {
*/
protected $httpClient;
/**
* The config.
*
* @var \Drupal\Core\Config\ImmutableConfig
*/
protected $config;
protected $apiKey = null;
protected $baseUrl = null;
@ -40,11 +33,11 @@ class Client {
*/
public function __construct(ClientInterface $httpClient, ImmutableConfig $config) {
$this->httpClient = $httpClient;
$this->config = $config;
$this->baseUrl = $config->get('url') ? rtrim($config->get('url'), '/') : null;
$this->apiKey = $config->get('key');
}
/* Preveri veljavnost tokena-a s klicom na etherpadov api. */
public function checkToken() {
if ($this->baseUrl) {
return $this->request('checkToken');