What is a Factory Class in Magento 2?

0

Factory classes are used to generate, change or get an entity without accessing the object manager, as Magento discourages doing this. These classes are generated during code generation and do not need to be defined manually.

asked Apr 15, 2023 at 01:03
Sign in to add a comment

0 Answers

0
📝 No answers yet!

Be the first to answer this interview question.

Your Answer

Sign in to post your answer and help the community.