From df89a76305ff858115842b5a5f496d7c2e515e6e Mon Sep 17 00:00:00 2001 From: Jurij Date: Tue, 23 Jan 2024 22:04:47 +0100 Subject: [PATCH] Config ne rabi bit property classa --- web/modules/custom/etherpad_api/src/Client.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/web/modules/custom/etherpad_api/src/Client.php b/web/modules/custom/etherpad_api/src/Client.php index d54292d..8600ebe 100644 --- a/web/modules/custom/etherpad_api/src/Client.php +++ b/web/modules/custom/etherpad_api/src/Client.php @@ -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');