Skip to content

Commit

Permalink
Fixed alias loading to be Lumen-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed Mar 20, 2017
1 parent e5d1020 commit b338ce8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Providers/GeocoderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public function boot()
*/
public function register()
{
AliasLoader::getInstance()->alias('Geocoder', Geocoder::class);

$this->app->alias('Geocoder', Geocoder::class);
$this->app->singleton('geocoder', function () {
$geocoder = new ProviderAndDumperAggregator();
$geocoder->registerProviders(
Expand Down

0 comments on commit b338ce8

Please sign in to comment.