- Properly passing data from outer layers of a PHP application to the use case layer
Update 2017-10-18: After reading this article, I recommend you to read the comment from Rasmus Schultz. It is very clarifying, and might make you think twice if this is really the best approach. Lately, I've been digging a lot in different ways of improving software architecture. Mainly subjects l…
tag Archive — "services"
— 2017 —
- Reusing factories in Zend ServiceManager
I think it is doubtless that modern PHP embraces SOLID principles, and therefore, dependency injection. That's why every modern PHP application needs a dependency injection container to deal with it. There are several options out there, depending on the way you like to work. Every container has a sl…
— 2016 —
- Using ServiceManager 3 lazy services to improve your PHP application performance
Performance is an important subject when a project grows. There are some good practices that make projects more maintainable, like dependency injection, however, creating all the objects at the beginning of the request could reduce the application performance. If some of the created objects are not …
- Improving Zend\ServiceManager workflow with annotations
Everyone who regularly visits my blog knows that I'm an absolute fan of the Zend\ServiceManager component. It is always my choice to deal with dependency injection in any kind of project, more now that v3 has been released, which is faster and has a better public API. The workflow while working with…
— 2014 —
- Advanced usage of ServiceManager in Zend Framework 2
After a time working with Zend Framework 2 one is used to use the ServiceManager, which is one of the most powerful components in the framework. It eases the creation of objects and performing dependency injection, allowing us to define how objects are created just in one place and letting the Servi…