Skip to content

Commit

Permalink
Merge pull request omniphx#63 from scottwakefield/master
Browse files Browse the repository at this point in the history
Fix config references
  • Loading branch information
omniphx committed Jul 24, 2015
2 parents e14697d + f864f1d commit 9d49ec1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Omniphx/Forrest/Providers/Laravel/LaravelCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class LaravelCache extends LaravelStorageProvider implements StorageInterface {

public function __construct(Config $config, Cache $cache)
{
$this->path = $config->get('forrest::config.storage.path');
$this->path = $config->get('forrest.storage.path');

$this->cache = $cache;

if($minutes = $config->get('forrest::config.storage.expire_in')) {
if($minutes = $config->get('forrest.storage.expire_in')) {
$this->minutes = $minutes;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Omniphx/Forrest/Providers/Laravel/LaravelSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class LaravelSession extends LaravelStorageProvider implements StorageInterface

public function __construct(Config $config, Session $session)
{
$this->path = $config->get('forrest::config.storage.path');
$this->path = $config->get('forrest.storage.path');

$this->session = $session;
}
Expand Down Expand Up @@ -53,4 +53,4 @@ public function has($key)
return $this->session->has($this->path.$key);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function getTokenData()
return Crypt::decrypt($token);
}

throw new MissingTokenException(sprintf('No token available in \''.\Config::get('forrest::config.storage.type').'\' storage'));
throw new MissingTokenException(sprintf('No token available in \''.\Config::get('forrest.storage.type').'\' storage'));
}

/**
Expand All @@ -56,4 +56,4 @@ public function getRefreshToken()

throw new MissingRefreshTokenException(sprintf('No refresh token stored in current session. Verify you have added refresh_token to your scope items on your connected app settings in Salesforce.'));
}
}
}

0 comments on commit 9d49ec1

Please sign in to comment.