Skip to content

Commit 2259c41

Browse files
committed
Merge branch 'release/1.1.2'
2 parents f960a19 + 4c1d8f8 commit 2259c41

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

Version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.1
1+
1.1.2

src/ServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)