Working on overall app structure.
This commit is contained in:
45
app/src/Providers/ArtisanServiceProvider.php
Normal file
45
app/src/Providers/ArtisanServiceProvider.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class ArtisanServiceProvider extends ServiceProvider {
|
||||
|
||||
/**
|
||||
* Bootstrap the application events.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the service provider.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->registerInspireCommand();
|
||||
|
||||
$this->commands('commands.inspire');
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the Inspire Artisan command.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function registerInspireCommand()
|
||||
{
|
||||
// Each available Artisan command must be registered with the console so
|
||||
// that it is available to be called. We'll register every command so
|
||||
// the console gets access to each of the command object instances.
|
||||
$this->app->bindShared('commands.inspire', function()
|
||||
{
|
||||
return new InspireCommand;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user