PHP Classes
elePHPant
Icontem

File: vendor/laravel/tinker/src/TinkerServiceProvider.php

Recommend this page to a friend!
  Classes of Renato De Oliveira Lucena  >  PHP Pokemon Script  >  vendor/laravel/tinker/src/TinkerServiceProvider.php  >  Download  
File: vendor/laravel/tinker/src/TinkerServiceProvider.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Pokemon Script
Provides an API to manage a database of Pokemons
Author: By
Last change:
Date: 2 years ago
Size: 755 bytes
 

 

Contents

Class file image Download
<?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'];
    }
}