You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a domain layer only! No controllers, templates, translations or any other potential override hassle / application tailored code. It comes with many infrastructural code what i tend to believe is industry standard these days; That is doctrine, elasticssearch, api platform, uuid, security, oauth, message bus etc. Lots of 2018 goodies :)
A full demo is maintained at https://github.com/msgphp/symfony-demo-app, moreover I think it's ready enough to be considered a FOSUserBundle replacement for basic operations. I'm committed to the project and aiming for a 1.0 release eventually, but that also requires real usage / gaining a community. Hence this is my next move :)
The opinionated part and most noticeable when working with the bundle is a base entity that defines User::getId(): UserIdInterface. It's based on identifier value objects by design and abstract base classes (e.g. doctrine mapped super classes).
The rest is practically up to decide by the end user, at application level. I tend to believe i properly solved a lot of issues mentioned in e.g. https://jolicode.github.io/fosuserbundle-conf/#/
Last but not least i consider the application design an educational effort as well. Docs are top prio! https://msgphp.github.io/docs/ Yet i cannot deny one might qualify it "advanced stuf", however the goal is to teach and simplify those patterns. In general im preparing the first cookbook topics now: see msgphp/msgphp#115 for my list.
The text was updated successfully, but these errors were encountered:
I like the messenger pattern, but it's optional. You can still work with e.g. Doctrine directly if that's what you're used to. Yet this is about separating concerns, entity state, decoupling, etc.
Eventually i created some form of abstraction model, to be applied on other domains as well (e.g. a file domain, taxonomy domain, your custom domain, etc. Common CMS stuff :P). And here we are...
ro0NL
changed the title
First class user domain recipe
[RFC] First class user domain recipe
Mar 24, 2018
Hi,
I might be dropping a bombshell here. #imgoingforitanyway
I'm proposing
composer require user
(or a to be discussed first-class alias), based on https://github.com/msgphp/user-bundle. Its current recipe lives at https://github.com/symfony/recipes-contrib/tree/master/msgphp/user-bundle/0.2It's a domain layer only! No controllers, templates, translations or any other potential override hassle / application tailored code. It comes with many infrastructural code what i tend to believe is industry standard these days; That is doctrine, elasticssearch, api platform, uuid, security, oauth, message bus etc. Lots of 2018 goodies :)
A full demo is maintained at https://github.com/msgphp/symfony-demo-app, moreover I think it's ready enough to be considered a FOSUserBundle replacement for basic operations. I'm committed to the project and aiming for a 1.0 release eventually, but that also requires real usage / gaining a community. Hence this is my next move :)
The opinionated part and most noticeable when working with the bundle is a base entity that defines
User::getId(): UserIdInterface
. It's based on identifier value objects by design and abstract base classes (e.g. doctrine mapped super classes).The rest is practically up to decide by the end user, at application level. I tend to believe i properly solved a lot of issues mentioned in e.g. https://jolicode.github.io/fosuserbundle-conf/#/
Last but not least i consider the application design an educational effort as well. Docs are top prio! https://msgphp.github.io/docs/ Yet i cannot deny one might qualify it "advanced stuf", however the goal is to teach and simplify those patterns. In general im preparing the first cookbook topics now: see msgphp/msgphp#115 for my list.
The text was updated successfully, but these errors were encountered: