Mezzio Example: Doctrine Entities and Repositories
Overview This post brings several pieces of supporting libraries together.
Entities to Support OAuth2 Requirements We’ll start by defining a minimum domain model via PHP8 Attributes and Doctrine’s new attribute mapping driver. In the short-term, we only need to model what’s necessary for our application’s authentication layer using OAuth2. For now, we’re creating a minimal set of objects to comply with the needs of our supporting libraries' interfaces. We need a minimum of 6 entities and their corresponding repositories:
[Read More]