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
10 months agoColene
10 months agoCraig
10 months agoDante
10 months agoMariann
10 months agoOdette
11 months agoLynsey
11 months agoLuisa
11 months agoTimmy
11 months agoRenato
11 months agoChan
11 months agoBettye
11 months agoDewitt
11 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