Skip to content

Commit

Permalink
[5.8] Make register method in the ServiceProvider as part of the co…
Browse files Browse the repository at this point in the history
…ntract

 In the laravel/framework#27067 pr was added DeferrableProvider service provider.
 This Pr will add pretty the same thing.
 In case, if it will be accepted then I will add documentation for this.

----------------

Also i thing will be good to add diferent contract for the:
- method `boot`
- property `singletons` and `bindings`
  • Loading branch information
TBlindaruk committed Feb 18, 2019
1 parent 09db1e5 commit ee3faba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MailServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
use Swift_DependencyContainer;
use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Contracts\Support\RegistrableProvider;

class MailServiceProvider extends ServiceProvider implements DeferrableProvider
class MailServiceProvider extends ServiceProvider implements DeferrableProvider, RegistrableProvider
{
/**
* Register the service provider.
Expand Down

0 comments on commit ee3faba

Please sign in to comment.