Skip to content

Commit

Permalink
Merge branch 'release/1.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyvdSluijs committed Jul 12, 2020
2 parents f960a19 + 4c1d8f8 commit 2259c41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.1.2] - 2020-07-12
### Fixed
- Late config binding added for runtime override

## [1.1.1] - 2020-07-12
### Fixed
- Make JsonMapperInterface availalbe in ServiceProvider
- Make JsonMapperInterface available in ServiceProvider

## [1.1.0] - 2020-07-12
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.1
1.1.2
4 changes: 2 additions & 2 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public function register()
{
$this->mergeConfigFrom(self::CONFIG_FILE, 'json-mapper');

$config = config('json-mapper.type');
$this->app->singleton(JsonMapperInterface::class, static function () use ($config) {
$this->app->singleton(JsonMapperInterface::class, function ($app) {
$config = $app->get('config')->get('json-mapper.type');
switch ($config) {
case 'best-fit':
return (new JsonMapperFactory())->bestFit();
Expand Down

0 comments on commit 2259c41

Please sign in to comment.