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
66
77## [ Unreleased]
88
9+ ## [ 1.1.2] - 2020-07-12
10+ ### Fixed
11+ - Late config binding added for runtime override
12+
913## [ 1.1.1] - 2020-07-12
1014### Fixed
11- - Make JsonMapperInterface availalbe in ServiceProvider
15+ - Make JsonMapperInterface available in ServiceProvider
1216
1317## [ 1.1.0] - 2020-07-12
1418### 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()
2020 {
2121 $ this ->mergeConfigFrom (self ::CONFIG_FILE , 'json-mapper ' );
2222
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 ' );
2525 switch ($ config ) {
2626 case 'best-fit ' :
2727 return (new JsonMapperFactory ())->bestFit ();
You can’t perform that action at this time.
0 commit comments