From 77b2fc0f5ca3051309e5c2024a3a95f5a60d749b Mon Sep 17 00:00:00 2001 From: Erdal CEYLAN Date: Wed, 26 Aug 2020 18:20:06 +0300 Subject: [PATCH 1/2] Update Client.php if not exists storage_path function --- src/Client.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Client.php b/src/Client.php index a174b48..b1663ed 100644 --- a/src/Client.php +++ b/src/Client.php @@ -17,9 +17,7 @@ public function __construct($config) { $this->config = $config; $this->company_id = $this->config['company_id']; - if (function_exists('storage_path')) { - $this->file = storage_path('token.ini'); - } + $this->file = function_exists('storage_path') ? storage_path('token.ini') : realpath(DIR . '/token.ini'); $this->checkTokens(); } From 489e53cf09a0c233541821f4c7cf5b6c1c9fd3b0 Mon Sep 17 00:00:00 2001 From: Erdal CEYLAN Date: Wed, 26 Aug 2020 18:28:58 +0300 Subject: [PATCH 2/2] Update Client.php if not exists storage_path --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index b1663ed..21419be 100644 --- a/src/Client.php +++ b/src/Client.php @@ -17,7 +17,7 @@ public function __construct($config) { $this->config = $config; $this->company_id = $this->config['company_id']; - $this->file = function_exists('storage_path') ? storage_path('token.ini') : realpath(DIR . '/token.ini'); + $this->file = function_exists('storage_path') ? storage_path('token.ini') : realpath(__DIR__ . '/token.ini'); $this->checkTokens(); }