Skip to content

Commit

Permalink
fix: 🐛 Missing class error
Browse files Browse the repository at this point in the history
  • Loading branch information
maicol07 committed Aug 27, 2020
1 parent 9df0685 commit 5c394c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ext-json": "*",
"ext-curl": "*",
"delight-im/cookie": "^3",
"maicol07/flarum-api-client": "0.2.x-dev"
"maicol07/flarum-api-client": "^0.2.x-dev"
},
"require-dev": {
"roave/security-advisories": "dev-master"
Expand Down
7 changes: 4 additions & 3 deletions src/Flarum.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
namespace Maicol07\SSO;

use Delight\Cookie\Cookie;
use Flagrow\Flarum\Api\Resource\Item;
use GuzzleHttp\Exception\ClientException;
use Illuminate\Support\Collection;
use Maicol07\Flarum\Api\Client;
use Maicol07\Flarum\Api\Resource\Item;

/**
* Flarum SSO
Expand All @@ -16,7 +17,7 @@
*/
class Flarum
{
/* @var \Flagrow\Flarum\Api\Flarum Api client */
/* @var Client Api client */
private $api;

/* @var Cookie */
Expand Down Expand Up @@ -66,7 +67,7 @@ public function __construct(string $url, string $root_domain, string $api_key, s
if ($insecure) {
$options['verify'] = false;
}
$this->api = new \Maicol07\Flarum\Api\Flarum($this->url, ['token' => $api_key], $options);
$this->api = new Client($this->url, ['token' => $api_key], $options);

$this->cookie = new Cookie('flarum_remember');
$this->lifetime = $lifetime;
Expand Down

0 comments on commit 5c394c9

Please sign in to comment.