blessing-skin-server/app/Providers/AppServiceProvider.php
2016-08-29 23:31:43 +08:00

32 lines
640 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');
require_once BASE_DIR."/app/helpers.php";
}
/**
* 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);
}
}