Skip to content

Commit

Permalink
+ Added aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
tylernathanreed committed Sep 25, 2020
1 parent ee4e894 commit c29cd82
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/SMSServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
use Reedware\LaravelSMS\Contracts\Factory as FactoryContract;
use Reedware\LaravelSMS\Contracts\MessageQueue as MessageQueueContract;
use Reedware\LaravelSMS\Contracts\Provider as ProviderContract;

class SMSServiceProvider extends ServiceProvider implements DeferrableProvider
{
Expand Down Expand Up @@ -35,6 +38,12 @@ protected function registerTexter()
$this->app->bind('sms', function ($app) {
return $app->make('sms.manager')->driver();
});

$this->app->alias('sms.manager', SMSManager::class);
$this->app->alias('sms.manager', FactoryContract::class);
$this->app->alias('sms', Provider::class);
$this->app->alias('sms', ProviderContract::class);
$this->app->alias('sms', MessageQueueContract::class);
}

/**
Expand Down

0 comments on commit c29cd82

Please sign in to comment.