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
8 months agoColene
8 months agoCraig
8 months agoDante
9 months agoMariann
9 months agoOdette
9 months agoLynsey
9 months agoLuisa
10 months agoTimmy
10 months agoRenato
10 months agoChan
10 months agoBettye
10 months agoDewitt
10 months agoBoris
1 year agoAlida
1 year agoFatima
1 year agoAlpha
1 year agoMarvel
1 year agoCammy
1 year 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