For Programmers who Wants to stay Lazy
New post every Monday and Thursday

How to Slowly Turn your Symfony Project to Legacy with Action Injection

The other day I saw the question on Reddit about Symfony's controller action dependency injection. More people around me are hyped about this new feature in Symfony 3.3 that allows to autowire services via action argument typehints. It's new, it's cool and no one has a bad experience with it. The ideal candidate for any code you write today.

Since Nette and Laravel introduced a similar feature in 2014, there are empirical data that we learn from.

Today I'll share the experience I have from consulting few Nette applications with dangerous overuse of this pattern and how this one thing turned the code to complete mess.



2017


2016


2015

Could not find post that was here before?

See deprecated posts or Czech posts


GitHub RSS @votrubaT Like what I write about? Hire me & we can work together