What Is a Virtual Type?

Asked: Apr 15, 2023

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.

Asked by brijesh

Answers (0)

No answers yet. Be the first to answer!