DEV Community

Discussion on: Improve your factories in Symfony

Collapse
 
mguinea profile image
Marc Guinea

Yep, but then you are placing something from the Framework (infrastructure layer) to the factory (domain layer).

It's also a valid approach, but I prefer keeping things separated (depends on the architecture of your app, of course).

Anyway, thanks for the idea!