Page MenuHomePhabricator

Move FundraisingStore code into bounded contexts
Closed, ResolvedPublic8 Estimated Story Points


  • Move the Doctrine entities from FundraisingStore into the respective bounded contexts (Choosing a proper namespace, e.g. DataAccess\DoctrineEntities). Change the entity namespace in the bounded contexts from WMDE/Fundraising\Entities to the Domain-specific namespace, e.g. WMDE\Fundraising\Donation\DataAccess\DoctrineEntities.
  • Each bounded context should have a factory class that can
    • create an entity manager (for the unit tests of the bounded context)
    • Return information about its mapping driver class (e.g. Doctrine\ORM\Mapping\Driver\AnnotationDriver or Doctrine\ORM\Mapping\Driver\XmlDriver) with a getDriverName and have a addPaths method that adds the entity-specific paths to the drivers.
  • Remove the FundraisingStore dependency from all composer.json files