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 85f2073 commit 024205a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HashServiceProvider.php
Expand Up @@ -4,8 +4,9 @@

use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Contracts\Support\RegistrableProvider;

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

0 comments on commit 024205a

Please sign in to comment.