Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have created a Plugin. Registered it in di.xml All public methods execute.
Can I inject/rewrite/replace (don't know the proper title) protected methods? How?
No you cant, and you should not normally.
But you can extend the Class and use the di.xml to get your class injected instead of the original one.
Required, but never shown
4 years, 2 months ago
4 years, 1 month ago