dddshelf / ddd Goto Github PK
View Code? Open in Web Editor NEWDomain Driven Design PHP helper classes
Home Page: https://leanpub.com/ddd-in-php
Domain Driven Design PHP helper classes
Home Page: https://leanpub.com/ddd-in-php
In the class Ddd\Infrastructure\Application\Notification\DoctrinePublishedMessageTracker on line 18 the code should be replaced with: $messageTracked = $this->findOneBy(array('typeName'=>$aTypeName), array('trackerId'=>'DESC')); in order to return the last PublishedMessageId
First of all I want to thank you boys for your job. I bought your e-book and find it useful.
Event's occurredOn attributes types should be immutable, but StoredEvent's occurredOn is mutable because of DateTime type.
https://github.com/dddinphp/ddd/blob/master/src/Domain/Event/StoredEvent.php#L34
Especially last-wishes app fires Event with DateTimeImmutable type - inconsistency that throws Exception.
https://github.com/bystro/last-wishes/blob/master/src/Lw/Domain/Model/User/UserRegistered.php#L19
Boys are you open for a PR? I can make some job.
I'm confused about why EventStore is placed in Ddd\Application instead of Ddd\Domain. The interface is referenced by Ddd\Domain\PersistDomainEventSubscriber. This shouldn't be allowed because you don't want dependencies from the Domain namespace on the Application namespace. (I think?)
Or the class PersistDomainEventSubscriber should also be moved to Ddd\Application.
Currently, CI is failing with error rbenv: version '5.4' not installed
.
Hi,
can you suggest me how can I subscribe PersistDomainEventSubscriber globally on Symfony 3?
For now I have registered this two services:
event.repository:
class: Messenger\Infrastructure\Application\Notification\DoctrineEventStoreRepository
factory: ['@doctrine', getRepository]
arguments: ['Messenger\Domain\Event\StoredEvent']
event.publisher:
class: Messenger\Domain\DomainEventPublisher
factory: ['Messenger\Domain\DomainEventPublisher', instance]
but I don't understand how (and where) can I subscribe my subscribers
Thanks
In 6.6.1 you have a definition of the class StoredEvent
There is a property in the class, that do not has an implementation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.