File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -46,17 +46,19 @@ public function boot() {
46
46
*/
47
47
public function register ()
48
48
{
49
+ $ app = $ this ->app ;
50
+
49
51
$ this ->app ['geocoder.adapter ' ] = $ this ->app ->share (function () {
50
52
return new CurlHttpAdapter ;
51
53
});
52
54
53
- $ this ->app ['geocoder.provider ' ] = $ this ->app ->share (function () {
54
- return new FreeGeoIpProvider ($ this -> app ['geocoder.adapter ' ]);
55
+ $ this ->app ['geocoder.provider ' ] = $ this ->app ->share (function ($ app ) {
56
+ return new FreeGeoIpProvider ($ app ['geocoder.adapter ' ]);
55
57
});
56
58
57
- $ this ->app ['geocoder ' ] = $ this ->app ->share (function () {
59
+ $ this ->app ['geocoder ' ] = $ this ->app ->share (function ($ app ) {
58
60
$ geocoder = new Geocoder ;
59
- $ geocoder ->registerProvider ($ this -> app ['geocoder.provider ' ]);
61
+ $ geocoder ->registerProvider ($ app ['geocoder.provider ' ]);
60
62
61
63
return $ geocoder ;
62
64
});
You can’t perform that action at this time.
0 commit comments