How to add new dependencies to classes

Sometimes we need to add new dependencies to classes, and we need to do this backward-compatible. In this article I am going to describe how to do it. I’m also going to tell about the common mistakes.

So, let’s start)

Preconditions

On the production environment, Magento should work on a read-o...

Continue reading...