Skip to content

Commit 0bf2039

Browse files
committed
Fix some bits
1 parent 414efb0 commit 0bf2039

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

app/Foundation/Providers/ConfigServiceProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ class ConfigServiceProvider extends ServiceProvider
3434
public function boot()
3535
{
3636
$env = $this->app->environment();
37-
$repo = $app->make(Repository::class);
38-
$cache = $app->make(Cache::class);
39-
$loaded = $cache->load();
37+
$repo = $this->app->make(Repository::class);
38+
$cache = $this->app->make(Cache::class);
39+
$loaded = $cache->load($env);
4040

4141
$this->app->terminating(function () use ($env, $repo, $cache, $loaded) {
4242
if ($repo->stale() || $loaded === false) {
@@ -94,7 +94,7 @@ public function boot()
9494
public function register()
9595
{
9696
$this->app->singleton(Cache::class, function ($app) {
97-
return new Cache($app->filesystem, $app->bootstrapPath().'/cachet');
97+
return new Cache($app->files, $app->bootstrapPath().'/cachet');
9898
});
9999

100100
$this->app->singleton(Repository::class, function () {

app/Settings/Cache.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@
1111

1212
namespace CachetHQ\Cachet\Settings;
1313

14+
use Exception;
1415
use Illuminate\Filesystem\Filesystem;
1516

17+
/**
18+
* This is the Cache class.
19+
*
20+
* @author Graham Campbell <[email protected]>
21+
* @author James Brooks <[email protected]>
22+
*/
1623
class Cache
1724
{
1825
/**

0 commit comments

Comments
 (0)