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:
[x] I have formatted my code using goimport and golangci-lint.
[x] All new code is covered by unit tests.
[x] This PR does not decrease the overall code coverage.
[x] I have reviewed the code comments and documentation for clarity.
Pull Request Template
Description:
UseMiddlewareWithContainer
.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:
goimport
andgolangci-lint
.Thank you for your contribution!