webDEVILopers
webDEVILopers
I think the `city` resp. `location` name for a `postalCode` can be very useful. I can make a PR for this as soon I am available if you like @craue...
The initial discussion can be found on twitter: https://twitter.com/webdevilopers/status/1519600542544281602 My tweet was based on the following thread regarding the "repository pattern" opened by @kainiklas : https://twitter.com/kniklas/status/1519270161429286914 > I am a...
Since we discovered CQRS and Event Sourcing we almost used it as a silver bullet. No wait - more like an ensurance. We experienced customers re-visiting us asking for features...
Currently we use Prooph Event Sourcing for our Aggregate Roots. Since the Prooph Service Bus was deprecated we use the Symfony Messenger instead. ```yaml services: _defaults: public: false Prooph\EventStoreBusBridge\EventPublisher: class:...
Here are some examples from the PHP world inside for instance from the @dddinphp book under "Value Equality": * https://books.google.de/books?id=4nc5DwAAQBAJ&pg=PA50&lpg=PA50#v=onepage&q&f=false Or by @spriebsch: ```class Money { public function equals(Money $money)...
Came from: > Given a `Token` #valueobject that internally uses current time to generate `expiresAt` date. > For unit testing expiration I would prefer reflection and set date - X...
```php function (ActionEvent $event) use ($eventStore): void { $recordedEvents = $event->getParam('streamEvents', new \ArrayIterator()); if (! $this->inTransaction($eventStore)) { if ($event->getParam('streamNotFound', false) || $event->getParam('concurrencyException', false) ) { return; } foreach ($recordedEvents as...
This is a screenshot from "The absolute beginner’s guide to DDD with Symfony" by @nealio82  Slides: https://speakerdeck.com/nealio82/the-absolute-beginners-guide-to-ddd-with-symfony?slide=105 My question was why the Domain Service `slotConfirmationService` was...
Came from: * https://twitter.com/webdevilopers/status/1423593062920593411 > Here is a current example where we need to get guest data from a different stream before we insert a related (`guestId`) visit data -...
@beberlei shows a good example on how to use this approach here: http://whitewashing.de/2012/08/22/building_an_object_model__no_setters_allowed.html With the following code you can add the `EditPostCommand` to the `data_class` of the `EditPostType` form: ```...