File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
9
+ ## [ 1.1.2] - 2020-07-12
10
+ ### Fixed
11
+ - Late config binding added for runtime override
12
+
9
13
## [ 1.1.1] - 2020-07-12
10
14
### Fixed
11
- - Make JsonMapperInterface availalbe in ServiceProvider
15
+ - Make JsonMapperInterface available in ServiceProvider
12
16
13
17
## [ 1.1.0] - 2020-07-12
14
18
### Fixed
Original file line number Diff line number Diff line change 1
- 1.1.1
1
+ 1.1.2
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ public function register()
20
20
{
21
21
$ this ->mergeConfigFrom (self ::CONFIG_FILE , 'json-mapper ' );
22
22
23
- $ config = config ( ' json-mapper.type ' );
24
- $ this -> app -> singleton (JsonMapperInterface::class, static function () use ( $ config) {
23
+ $ this -> app -> singleton (JsonMapperInterface::class, function ( $ app ) {
24
+ $ config = $ app -> get ( ' config ' )-> get ( ' json-mapper.type ' );
25
25
switch ($ config ) {
26
26
case 'best-fit ' :
27
27
return (new JsonMapperFactory ())->bestFit ();
You can’t perform that action at this time.
0 commit comments