- Issue created by @maithri shetty
- Issue was unassigned.
- Status changed to Needs review
10 months ago 2:06pm 1 February 2024 - 🇮🇳India Raveen Kumar
Yes, Dependency injection helps to decouple classes, making them more modular and easier to test and maintain. By injecting dependencies rather than hard-coding them within a class, you make your code more reusable across different contexts.
* Patch #2 seems to be good to go as it contains all the necessary changes in it. Thank You.
- Status changed to RTBC
9 months ago 7:42am 15 February 2024 - Status changed to Closed: duplicate
7 months ago 11:31am 20 April 2024 - 🇨🇦Canada mandclu
Thanks for your work here, but this was handled in 📌 PHPCS: \Drupal calls should be avoided in classes, use dependency injection instead, other issues Fixed .