Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
niladam committed Jul 28, 2022
1 parent 703e285 commit f9bf442
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/LaravelSendsmsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,22 @@

namespace Niladam\LaravelSendsms;

use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Support\DeferrableProvider;
use Niladam\LaravelSendsms\Commands\LaravelSendsmsCommand;

class LaravelSendsmsServiceProvider extends ServiceProvider implements
DeferrableProvider
class LaravelSendsmsServiceProvider extends ServiceProvider implements DeferrableProvider
{
public function register()
{
$this->app->singleton(
LaravelSendsms::class,
fn() => new LaravelSendsms(config("laravel-sendsms"))
fn () => new LaravelSendsms(config("laravel-sendsms"))
);

$this->app->bind("laravel-sendsms", LaravelSendsms::class);

$this->app->singleton("command.sendsms", function () {
return new LaravelSendsmsCommand();
});
$this->app->singleton("command.sendsms", fn () => new LaravelSendsmsCommand());

$this->commands(["command.sendsms"]);
}
Expand All @@ -46,6 +43,6 @@ public function boot()
*/
public function provides()
{
return ["command.tinker"];
return ["command.sendsms"];
}
}

0 comments on commit f9bf442

Please sign in to comment.