Skip to content

Conversation

@yvoyer
Copy link
Collaborator

@yvoyer yvoyer commented Apr 28, 2016

This will fix #7.

Employee are allowed to:

  • Owner
  • Hire employee
  • fire employee
  • promote employee
  • Create meal
  • release meal
  • retire meal
  • archive meal
  • Cashier
  • todo
  • Delivery boy
  • todo
  • Waitress
  • todo

@yvoyer yvoyer self-assigned this Apr 28, 2016
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be $ownerId

@yvoyer
Copy link
Collaborator Author

yvoyer commented Apr 28, 2016

@webdevilopers i'll make the domain implementation in this branch If you have suggestions to improve.

@webdevilopers
Copy link
Owner

Do I have to merge anything or do you have the rights yourself when you are done? Unfortunately I'm very busy this May. I "may" take some time to react. :/

@yvoyer
Copy link
Collaborator Author

yvoyer commented May 1, 2016

No, I'm still working on it (WIP). If you have any comments about the structure or logic or anything, we can discuss it.

I'll merge it when it's ready.

* Administration context:
** Owner hire candidate

* Sale context:
** Create Waitress, Cook, Cashier and Delivery boy when Candidate is hired

* Shipping context
** Create Delivery boy when Candidate is hired

* Application context
** Add EventPublisher
** Add Symfony port adapter
** Add InMemory port adapter
** Behat context
use Example\Domain\Administration\DomainModel\OwnerRepository;
use Example\Domain\Common\Application\EventPublisher;

final class AdministrationService
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be renamed to HiringHandler

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Project suggestion for example

3 participants