Skip to content

Commit

Permalink
Merge pull request #8 from erdalceylan/master
Browse files Browse the repository at this point in the history
Token path updated.
  • Loading branch information
hakanersu authored Aug 27, 2020
2 parents 35c1db2 + 489e53c commit f04c432
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit f04c432

Please sign in to comment.