Commit 7c8b8e7d authored by Taylor Otwell's avatar Taylor Otwell

Make Artisan service provider be deferred.

parent 100f727f
...@@ -5,6 +5,13 @@ use Illuminate\Support\ServiceProvider; ...@@ -5,6 +5,13 @@ use Illuminate\Support\ServiceProvider;
class ArtisanServiceProvider extends ServiceProvider { class ArtisanServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true;
/** /**
* Register the service provider. * Register the service provider.
* *
...@@ -15,4 +22,14 @@ class ArtisanServiceProvider extends ServiceProvider { ...@@ -15,4 +22,14 @@ class ArtisanServiceProvider extends ServiceProvider {
$this->commands('App\Console\InspireCommand'); $this->commands('App\Console\InspireCommand');
} }
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return ['App\Console\InspireCommand'];
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment