Skip to content

Commit d5fb6aa

Browse files
committed
bind singleton to CachedValuestore instead of Valuestore
1 parent 2bf279b commit d5fb6aa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.2.0 - 2020-11-19
4+
5+
### Changed
6+
- Register `DutchCodingCompany\CachedValuestore\CachedValuestore` as singleton instead of `Spatie\Valuestore\Valuestore`
7+
38
## 0.1.1 - 2020-11-16
49

510
### Added

src/ServiceProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
namespace DutchCodingCompany\CachedValuestore;
44

5-
use Spatie\Valuestore\Valuestore;
65
use Illuminate\Contracts\Foundation\Application;
76
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
87

98
class ServiceProvider extends BaseServiceProvider
109
{
1110
public function boot()
1211
{
13-
$this->app->singleton(Valuestore::class, static function (Application $app) {
12+
$this->app->singleton(CachedValuestore::class, static function (Application $app) {
1413
return CachedValuestore::make(CachedValuestore::$cachedFileName ?? $app->storagePath().DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.'settings.json');
1514
});
1615
}

0 commit comments

Comments
 (0)