Skip to content

Commit

Permalink
update for helpers deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Apr 15, 2019
1 parent 330a07c commit 1b49238
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor/
/composer.lock
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Fortifi Business Platform",
"homepage": "http://fortifi.co",
"require": {
"packaged/helpers": "~1.1"
"packaged/helpers": "~1.1|~2.2"
},
"require-dev": {
},
Expand Down
5 changes: 2 additions & 3 deletions src/ApiEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ public function getToken()
}
return $this->getTokenStorage()->retrieveToken(
$this->_grant->getKey(),
function ()
{
function () {
return $this->_grant->getToken(
$this->_getConnection(),
$this->_definition->getSecurityDefinition('oauth2')
Expand Down Expand Up @@ -142,7 +141,7 @@ protected function _buildUrl($path)
$this->_baseUrl .= '/' . ltrim($this->_definition->getBasePath(), '/');
}

return Path::buildUnix($this->_baseUrl, $path);
return Path::unix($this->_baseUrl, $path);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/OAuth/TokenStorage/TempFileTokenStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ public function retrieveToken($key, callable $retrieve = null)
*/
private function _createFileName($key)
{
return Path::build(sys_get_temp_dir(), 'Fortifi-API-Token-' . $key);
return Path::system(sys_get_temp_dir(), 'Fortifi-API-Token-' . $key);
}
}

0 comments on commit 1b49238

Please sign in to comment.