Skip to content

Instantly share code, notes, and snippets.

@mrsimonbennett
Last active August 29, 2015 14:11
Show Gist options
  • Save mrsimonbennett/739badfab7fb9d8f09f6 to your computer and use it in GitHub Desktop.
Save mrsimonbennett/739badfab7fb9d8f09f6 to your computer and use it in GitHub Desktop.
My Question for #dev-discussions Friday 19th
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
@ShawnMcCool
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment