52 lines
1.1 KiB
PHP
52 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Album;
|
|
use App\Configuration;
|
|
use App\Facade\Theme;
|
|
use App\Facade\UserConfig;
|
|
use App\Helpers\ConfigHelper;
|
|
use App\Helpers\ImageHelper;
|
|
use App\Helpers\MiscHelper;
|
|
use App\Helpers\ThemeHelper;
|
|
use Illuminate\Database\QueryException;
|
|
use Illuminate\Mail\Mailer;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\View;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
$this->app->singleton('image', function ($app)
|
|
{
|
|
return new ImageHelper();
|
|
});
|
|
$this->app->singleton('theme', function ($app)
|
|
{
|
|
return new ThemeHelper();
|
|
});
|
|
$this->app->singleton('user_config', function ($app)
|
|
{
|
|
return new ConfigHelper();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
}
|
|
}
|