Skip to content

Commit f04c432

Browse files
authored
Merge pull request #8 from erdalceylan/master
Token path updated.
2 parents 35c1db2 + 489e53c commit f04c432

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Client.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ public function __construct($config)
1717
{
1818
$this->config = $config;
1919
$this->company_id = $this->config['company_id'];
20-
if (function_exists('storage_path')) {
21-
$this->file = storage_path('token.ini');
22-
}
20+
$this->file = function_exists('storage_path') ? storage_path('token.ini') : realpath(__DIR__ . '/token.ini');
2321
$this->checkTokens();
2422
}
2523

0 commit comments

Comments
 (0)