demo icon indicating copy to clipboard operation
demo copied to clipboard

Create interfaces for repositories

Open roxblnfk opened this issue 5 years ago • 4 comments

I think it is good practice to use interfaces for repositories.

Repository methods already return DataReaderInterface objects (this gives us independence from DBAL), it remains only to describe their API in the interfaces.

roxblnfk avatar Jul 15 '20 21:07 roxblnfk

Do you mean a common interface or repository-specific interfaces?

samdark avatar Jul 15 '20 21:07 samdark

Common interface with ooerations more used, created, modify, delete, find, etc.

terabytesoftw avatar Jul 15 '20 21:07 terabytesoftw

Do you mean a common interface or repository-specific interfaces?

It is good to have a common interface in the context of ORM and other common cases. However in the context of this repository i mean only repository-specific interfaces.

roxblnfk avatar Jul 15 '20 21:07 roxblnfk

  1. Who would be users/clients of these interfaces?
  2. Would these interfaces separate system boundaries?
  3. Would there be multiple implementations of these interfaces?

samdark avatar Jul 15 '20 22:07 samdark