import 'package:get/get.dart';
import 'package:hallo_doctor_client/app/service/review_service.dart';
import '../controllers/list_review_controller.dart';

class ListReviewBinding extends Bindings {
  @override
  void dependencies() {
    // Register ReviewService first
    Get.lazyPut<ReviewService>(
      () => ReviewService(),
      fenix: true, // Keep the instance alive
    );

    // Then register the controller which depends on ReviewService
    Get.lazyPut<ListReviewController>(
      () => ListReviewController(),
    );
  }
}
