Comments (2)
HI @danaki
Your application is either aware a call is made async or sync, i tend to believe this is a design-choice of your app. Typically user registration happens in sync.
On the technical side, yes we can benefit from return values coming from message handlers when we use Symfony Messenger (i never did that though using SimpleBus). I.e.
$userId = $bus->handle(new CreateUserCommand($data = $form->getData()));
Cosmetically we can add return values anyway, to be leveraged when using SF Messenger. It's on my list to switch the demo app to do so.
Alternatively, and this is my common approach, is to generate the user UUID upfront.
$userId = new UserId();
$bus->handle(new CreateUserCommand(['id' => $userId] + $data = $form->getData()));
from symfony-demo-app.
Assuming we can close but feel free to re-open :)
from symfony-demo-app.
Related Issues (20)
- Demo Site is down HOT 2
- Switch to Docker
- Could not scan for classes inside "var/phpunit/phpunit-7.5/src/" HOT 1
- Feature Request: Invitations HOT 4
- Add docker elasticsearch container / fix JWT
- Shell for user-bundle demo with bootstrap and jquery HOT 1
- Document Social Media Login HOT 1
- Use API Platform + SF Messenger dedicated
- Ditch src/DataFixtures in favor of yaml fixtures
- Implement ongr-io/ElasticsearchBundle
- Foreign key error on staging servers HOT 1
- Multiple email: forgot password looks for email in users table... HOT 4
- msgphp_user.current.email takes always credential email HOT 4
- Multiple email - forgot password always sends email to primary email HOT 1
- Switch Eav\Attribute to use string identifiers
- Switch Elasticsearch container
- No alive nodes found in your cluster error HOT 6
- Flatten structure HOT 1
- Add Symfony HTTP Responder
- Documentation for implementing email confirmation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from symfony-demo-app.