Browse Source

DBUtilのシングルトン登録

develop
sosuke.iwabuchi 1 year ago
parent
commit
3f7e3c65af
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/Providers/AppServiceProvider.php

+ 3
- 0
app/Providers/AppServiceProvider.php View File

@@ -21,6 +21,9 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot(): void
{
// DB
$this->app->singleton(\App\Util\DBUtil::class);

// コンテキスト設定
$this->app->singleton(\App\Contexts\Model\Shop::class);
$this->app->singleton(\App\Contexts\Model\Deposit::class);


Loading…
Cancel
Save