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 1e5a09a commit d5cc47f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ViewServiceProvider.php
Expand Up @@ -8,8 +8,9 @@
use Illuminate\View\Engines\CompilerEngine;
use Illuminate\View\Engines\EngineResolver;
use Illuminate\View\Compilers\BladeCompiler;
use Illuminate\Contracts\Support\RegistrableProvider;

class ViewServiceProvider extends ServiceProvider
class ViewServiceProvider extends ServiceProvider implements RegistrableProvider
{
/**
* Register the service provider.
Expand Down

0 comments on commit d5cc47f

Please sign in to comment.