You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
755 B

<?php
namespace Laravel\Tinker;
use Illuminate\Support\ServiceProvider;
use Laravel\Tinker\Console\TinkerCommand;
class TinkerServiceProvider 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->app->singleton('command.tinker', function () {
return new TinkerCommand;
});
$this->commands(['command.tinker']);
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return ['command.tinker'];
}
}