Skip to content

Commit

Permalink
Bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
her-cat committed Jul 25, 2019
1 parent 25436a7 commit d79e113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ServiceProvider extends \Illuminate\Support\ServiceProvider
*/
public function register()
{
$this->app->singleton(function ($app) {
$this->app->singleton(BaiduTranslator::class, function () {
return new BaiduTranslator(
config('translator.app_id'),
config('translator.key')
Expand Down

0 comments on commit d79e113

Please sign in to comment.