new AppSessionService('domain_session_uuid') ); App::scoped( BasketRepository::class, fn (Application $app) => new SessionBasketRepository( $app->make(Session::class), self::BASKET_SESSION_KEY_PREFIX, $app->make(BasketSerializer::class) ) ); App::scoped( OrderBuilderSessionManager::class, fn (Application $app) => new SessionOrderBuilderManager( $app->make(Session::class), self::ORDER_BUILDER_SESSION_KEY ) ); App::scoped( TunnelAttemptTrackerService::class, fn (Application $app) => new DatabaseTunnelAttemptTrackerService( $app->make(Session::class), self::ORDER_TUNNEL_ATTEMPT_SESSION_KEY ) ); App::scoped(BasketService::class, fn (Application $app) => new BasketService( $app->make(BasketRepository::class), $app->make(ProductRepository::class), $app->make(SessionService::class), $app->make(DomainEventDispatcher::class) )); } }