Tweak how console commands are registered.

This commit is contained in:
Taylor Otwell
2014-10-21 10:27:26 -05:00
parent ec9edec9a2
commit 9aed9debca
6 changed files with 11 additions and 39 deletions

View File

@@ -1,35 +0,0 @@
<?php namespace App\Providers;
use InspireCommand;
use Illuminate\Support\ServiceProvider;
class ArtisanServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true;
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->commands('App\Console\Commands\InspireCommand');
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return ['App\Console\Commands\InspireCommand'];
}
}