mezzio / mezzio-hal

Hypertext Application Language implementation for PHP and PSR-7

Home Page:https://docs.mezzio.dev/mezzio-hal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resource Generator abstract class

bkilinc opened this issue · comments

Feature Request

Q A
New Feature yes
RFC yes/no
BC Break yes/no

Summary

Library heavily depends on static ResourceGenerator class. It is nearly impossible to create your own. As strategy methods accepts this type of class. It is possible to extend the class but its constructor requires metadatamap, hydrators, linkgenerator etc. Some of them I don't need and assigning null to them is not possible.

So there should be a an abstract ResourceGenerator class (or interface class) to implement our own.