File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
4
4
5
+ ## [ 4.0.10] - 1 Jul 2018
6
+ ### Changed
7
+ - service provider to register singleton and alias in ` register() ` method.
8
+
5
9
## [ 4.0.9] - 28 May 2018
6
10
### Added
7
11
- class-name resolution from Service container, allowing for dependency
Original file line number Diff line number Diff line change @@ -25,19 +25,16 @@ public function boot()
25
25
"config "
26
26
);
27
27
$ this ->mergeConfigFrom ($ configPath , "geocoder " );
28
- $ geocoder = (new ProviderAndDumperAggregator )
29
- ->registerProvidersFromConfig (collect (config ("geocoder.providers " )));
30
- $ this ->app
31
- ->singleton ("geocoder " , function () use ($ geocoder ) {
32
- return $ geocoder ;
33
- });
34
- $ this ->app
35
- ->instance (ProviderAndDumperAggregator::class, $ geocoder );
36
28
}
37
29
38
30
public function register ()
39
31
{
40
32
$ this ->app ->alias ("Geocoder " , Geocoder::class);
33
+ $ this ->app ->singleton (ProviderAndDumperAggregator::class, function () {
34
+ return (new ProviderAndDumperAggregator )
35
+ ->registerProvidersFromConfig (collect (config ("geocoder.providers " )));
36
+ });
37
+ $ this ->app ->bind ('geocoder ' , ProviderAndDumperAggregator::class);
41
38
}
42
39
43
40
public function provides () : array
You can’t perform that action at this time.
0 commit comments