app->scoped(LaravelDomainEventDispatcher::class); $this->app->bind( DomainEventDispatcher::class, LaravelDomainEventDispatcher::class ); $this->app->bind( OrderRepository::class, EloquentOrderRepository::class ); $this->app->bind( PickupExceptionRepository::class, EloquentPickupExceptionRepository::class ); $this->app->bind( ShopperRepository::class, EloquentShopperRepository::class ); $this->app->bind( ShopRepository::class, EloquentShopRepository::class ); $this->app->bind( EmployeeStatisticsService::class, EloquentEmployeeStatisticsService::class ); $this->app->bind( ShopDirectory::class, EloquentShopDirectory::class ); $this->app->bind( AdminAuthenticationService::class, AppAdminAuthService::class ); $this->app->bind( CustomerAuthenticationService::class, AppCustomerAuthService::class ); $this->app->bind( ProductRepository::class, EloquentProductRepository::class ); $this->app->bind( BasketRepository::class, SessionBasketRepository::class ); $this->app->bind( TransactionManager::class, LaravelTransactionManager::class ); $this->app->bind( CodeDirectory::class, EloquentCodeDirectory::class ); $this->app->bind( EmployeeImportStorageService::class, EloquentEmployeeImportStorageService::class ); $this->app->bind( CsvGenerator::class, CsvGeneratorImpl::class ); $this->app->bind( Lock::class, LaravelCacheLock::class ); $this->app->bind( RegateService::class, MailRegateService::class ); $this->app->singleton( CustomerOrderLimitPolicy::class, fn (Application $app): CustomerOrderLimitPolicy => new CustomerOrderLimitPolicy( maxOrderAmountCents: Config::integer('ldc.max_order_amount_cents'), maxWeeklyAmountCents: Config::integer('ldc.max_weekly_amount_cents'), currency: $app->make(Currency::class), ) ); } /** * Bootstrap any application services. */ public function boot(): void { // } }