Skip to content

Commit

Permalink
Merge pull request #1 from pnlinh/feature/update-facades
Browse files Browse the repository at this point in the history
Update facades
  • Loading branch information
pnlinh authored Nov 1, 2018
2 parents 7712cbe + 513338b commit 3f8c3fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Facades/GoogleDistance.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
namespace Pnlinh\GoogleDistance\Facades;

use Illuminate\Support\Facades\Facade;
use Pnlinh\GoogleDistance\DistanceApi;

class GoogleDistance extends Facade
{
protected static function getFacadeAccessor()
{
return DistanceApi::class;
return 'distance';
}
}
2 changes: 1 addition & 1 deletion src/Providers/GoogleDistanceServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function boot()
*/
public function register()
{
$this->app->singleton(DistanceApi::class, function (Container $app) {
$this->app->singleton('distance', function (Container $app) {
return new DistanceApi($app['config']['distance.api_key']);
});
}
Expand Down

0 comments on commit 3f8c3fe

Please sign in to comment.