12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?php
- /**
- * Created by PhpStorm.
- * User: fangx
- * Date: 2021/7/12
- * Time: 11:52
- */
- namespace App\Basic\Providers;
- use App\Base\Providers\AppServiceProvider;
- use App\Basic\Facades\DictActivityTypeFacade;
- use App\Basic\Facades\DictColumnFacade;
- use App\Basic\Facades\DictCompanyCategoryFacade;
- use App\Basic\Facades\DictCompanyFacade;
- use App\Basic\Facades\DictDepartmentFacade;
- use App\Basic\Facades\DictExhibitionFacade;
- use App\Basic\Facades\DictIconFacade;
- use App\Basic\Facades\DictIndustryExhibitionFacade;
- use App\Basic\Facades\DictIndustryFacade;
- use App\Basic\Facades\DictJobTitleFacade;
- use App\Basic\Facades\DictLanguageFacade;
- use App\Basic\Facades\DictLocationFacade;
- use App\Basic\Facades\DictPlurilingualFacade;
- use App\Basic\Facades\DictProductFacade;
- use App\Basic\Facades\DictRegionFacade;
- use App\Basic\Facades\DictRegionLocationReFacade;
- use App\Basic\Facades\DictVenueFacade;
- use App\Basic\Facades\SyncTagFacade;
- use App\Basic\Facades\UrlsFacade;
- use App\Basic\Facades\VersionInfoFacade;
- use App\Basic\Services\DictActivityTypeService;
- use App\Basic\Services\DictColumnService;
- use App\Basic\Services\DictCompanyCategoryService;
- use App\Basic\Services\DictCompanyService;
- use App\Basic\Services\DictDepartmentService;
- use App\Basic\Services\DictExhibitionService;
- use App\Basic\Services\DictIconService;
- use App\Basic\Services\DictIndustryExhibitionService;
- use App\Basic\Services\DictIndustryService;
- use App\Basic\Services\DictJobTitleService;
- use App\Basic\Services\DictLanguageService;
- use App\Basic\Services\DictLocationService;
- use App\Basic\Services\DictPlurilingualService;
- use App\Basic\Services\DictProductService;
- use App\Basic\Services\DictRegionLocationReService;
- use App\Basic\Services\DictRegionService;
- use App\Basic\Services\DictVenueService;
- use App\Basic\Services\SyncTagService;
- use App\Basic\Services\UrlsService;
- use App\Basic\Services\VersionInfoService;
- class BasicServiceProvider extends AppServiceProvider
- {
- public function boot()
- {
- //sql打印 不提交
- /*\DB::listen(function ($query) {
- $sql = array_reduce($query->bindings, function($sql, $binding) {
- return preg_replace('/\?/', is_numeric($binding) ? $binding : sprintf("'%s'", $binding), $sql, 1);
- }, $query->sql);
- \Log::info($sql);
- });*/
- parent::boot();
- }
- /**
- * 注册绑定门面
- */
- public function register()
- {
- $this->app->bind(UrlsFacade::class, function () {
- return app()->make(UrlsService::class);
- });
- }
- }
|