gofr-dev / gofr

An opinionated GoLang framework for accelerated microservice development. Built in support for databases and observability.
https://gofr.dev
Apache License 2.0
3.6k stars 236 forks source link

deprecate UseMiddlewarWithContainer and remove it from tests and docs #1228

Open Umang01-hash opened 2 days ago

Umang01-hash commented 2 days ago

Pull Request Template

Description:

Reason for Deprecation:

We are deprecating the UseMiddlewareWithContainer feature due to architectural considerations. Allowing middleware to access databases or caches introduces unnecessary complexities.

By removing this support, we aim to encourage a cleaner separation of concerns, ensuring that middleware remains focused on its intended purpose. This change will help in maintaining the simplicity and integrity of our framework.

Checklist:

Thank you for your contribution!