Last active
August 29, 2015 14:11
-
-
Save mrsimonbennett/739badfab7fb9d8f09f6 to your computer and use it in GitHub Desktop.
My Question for #dev-discussions Friday 19th
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Give you have the following classes | |
Member (entity) | |
MemeberRepository | |
RegisterMemberCommand (command request) | |
RegisterMemberCommandHandler (command handler) | |
MemeberWasRegistered (event) | |
Company (entity) | |
CompanyRepository | |
RegisterCompanyCommand (command request) | |
RegisterCompanyCommandHandler(command handler) | |
CompanyWasRegistered (event) | |
MemberJoinedCompanyCommand (command request) | |
MemberJoinedCompanyCommandHandler (command handler) | |
MemberHasJointedCompany (event) | |
How would you namepace them? You can rename classes as well | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm just throwing this out there as a first iteration.
App\Membership\Member
App\Membership\MemberRepository
App\Membership\DoctrineMemberRepository
App\Membership\RegisterMember
App\Membership\RegisterMemberHandler
App\Membership\MemberWasRegistered
App\Companies\Company
App\Companies\CompanyRepository
App\Companies\DoctrineCompanyRepository
App\Companies\CompanyWasRegistered
App\Companies\AddEmployeeToCompany
App\Companies\AddEmployeeToCompanyHandler
App\Companies\EmployeeAddedToCompany