re: When PHP Framework Sucks Series: Magic inside frameworks VIEW POST

FULL DISCUSSION
 

I've seen the container pattern used in Symfony as a way to allow circular dependencies. If A requires B and B requires A, then one of those needs to require a container and resolve what it needs when it needs it, instead of in constructor.

code of conduct - report abuse