Adobe AD0-E704 Exam - Topic 11 Question 52 Discussion
Suppose there are 3 classes: Class A, B and C. Class C have dependecy of Class A You need to overrride/change an argument of class A, create an object of it and inject in Class B in such a way that it should not affect the class C. What should be the magento standard way to do this:
B) In module's etc/config.xml, define virtualType node to override argument and create a subclass of A. Then use type node to pass the subclass A object into class B. and C) In module's etc/system.xml, define virtualType node to override argument and create a subclass of A. Then use type node to pass the subclass A object into class B.
A) In module's etc/di.xml, define virtualType node to override argument and create a subclass of A. Then use type node to pass the subclass A object into class B.
D) In module's etc/menu.xml, define virtualType node to override argument and create a subclass of A. Then use type node to pass the subclass A object into class B.
Dorathy
7 months agoColene
7 months agoCraig
7 months agoDante
7 months agoMariann
7 months agoOdette
8 months agoLynsey
8 months agoLuisa
8 months agoTimmy
8 months agoRenato
8 months agoChan
8 months agoBettye
8 months agoDewitt
8 months agoBoris
1 year agoAlida
12 months agoFatima
12 months agoAlpha
1 year agoMarvel
1 year agoCammy
12 months agoRebecka
1 year agoCarla
1 year agoTamra
1 year agoSharmaine
1 year agoChantell
1 year agoSanda
1 year agoJoesph
1 year agoLinsey
1 year agoGoldie
1 year agoArdella
1 year agoErin
1 year agoRossana
1 year ago