📜 ⬆️ ⬇️

Dependency Injection Component

A new component from symfony concerns an extremely important design pattern - Dependency Injection. Honestly, I read a lot about him, but in practice I didn’t really see how to apply it, and the theory was rather abstract for me. Symphonists here have withstood the corporate style. A booklet is attached to the component, which begins with the chapter “What is Dependency Injection?” And step by step, some classroom will refactor into an elegant solution. To show that a component can be used not only with Symphony, the classes from the Zend framework are also used as examples. It's a pity that the book can not be downloaded.

Here is another example of using this component with the Zend framework .

')

Source: https://habr.com/ru/post/63785/


All Articles