blessing-skin-server/app/Providers/AppServiceProvider.php
2016-08-28 22:15:09 +08:00

30 lines
589 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
\View::addExtension('tpl', 'blade');
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
$this->app->singleton('database', \App\Services\Database\Database::class);
$this->app->singleton('option', \App\Services\OptionRepository::class);
}
}