DEV Community

Discussion on: When PHP Framework Sucks Series: Magic inside frameworks

Collapse
 
panta82 profile image
panta82

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.