What Is a Virtual Type?
0
A virtual type refers to the way of configuring dependency injection via a di.xml file. It allows changing or configuring specific classes. The trick is that a virtual type can never be referenced directly in the source code. Your candidate should specify this exception and possibly provide use cases of a virtual type.
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.