Skip to content

Commit 0a68cd5

Browse files
kon-shoumfn
authored andcommitted
implement DeferrableProvider
$defer has been deprecated after laravel 5.8 (https://laravel.com/docs/5.8/upgrade#deferred-service-providers) and removed after laravel 6.x (laravel/framework#27505) (cherry picked from commit 99cc41e)
1 parent 9562bf5 commit 0a68cd5

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/IdeHelperServiceProvider.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,16 @@
1515
use Barryvdh\LaravelIdeHelper\Console\GeneratorCommand;
1616
use Barryvdh\LaravelIdeHelper\Console\MetaCommand;
1717
use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
18+
use Illuminate\Contracts\Support\DeferrableProvider;
1819
use Illuminate\Support\ServiceProvider;
1920
use Illuminate\View\Engines\EngineResolver;
2021
use Illuminate\View\Engines\PhpEngine;
2122
use Illuminate\View\Factory;
2223
use Illuminate\View\FileViewFinder;
2324

24-
class IdeHelperServiceProvider extends ServiceProvider
25+
class IdeHelperServiceProvider extends ServiceProvider implements DeferrableProvider
2526
{
2627

27-
/**
28-
* Indicates if loading of the provider is deferred.
29-
*
30-
* @var bool
31-
*/
32-
protected $defer = true;
33-
3428
/**
3529
* Bootstrap the application events.
3630
*

0 commit comments

Comments
 (0)