| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class SendChampServiceProvider extends ServiceProvider |
||
| 14 | { |
||
| 15 | /* |
||
| 16 | * Indicates if loading of the provider is deferred. |
||
| 17 | * |
||
| 18 | * @var bool |
||
| 19 | */ |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Register services. |
||
| 23 | * |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | public function register() |
||
| 27 | { |
||
| 28 | // |
||
| 29 | $this->app->bind('laravel-sendchamp', function () { |
||
| 30 | return new SendChamp; |
||
| 31 | }); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Publishes all the config file this package needs to function |
||
| 36 | */ |
||
| 37 | public function boot() |
||
| 38 | { |
||
| 39 | $config = realpath(__DIR__.'/../config/sendchamp.php'); |
||
| 40 | |||
| 41 | $this->publishes([ |
||
| 42 | $config => config_path('sendchamp.php'), |
||
|
|
|||
| 43 | ]); |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get the services provided by the provider |
||
| 48 | * |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | public function provides() |
||
| 54 | } |
||
| 55 | } |
||
| 56 |