0

How many ways to do dependency injection?

Object Manager,Constructor injection and Method injection Is that it ?

1 Answer 1

1

Yes, I believe so. As per the official blog of Magento 2 - If you find more please let me know

Link: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/depend-inj.html

1
  • yes, I have read the same. That's all think so. Commented Aug 12, 2020 at 10:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.