| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function register() |
||
| 32 | { |
||
| 33 | $this->app->singleton('google-distance', function (Container $app) { |
||
| 34 | return new GoogleDistance($app['config']['google-distance.api_key'], $app['config']['google-distance.units']); |
||
| 35 | }); |
||
| 36 | |||
| 37 | $this->app->booting(function () { |
||
| 38 | $loader = AliasLoader::getInstance(); |
||
| 39 | $loader->alias('GoogleDistance', \Pnlinh\GoogleDistance\Facades\GoogleDistance::class); |
||
| 40 | }); |
||
| 43 |