phly / PhlyRestfully

ZF2 module for creating RESTful JSON APIs using HAL and API-Problem
108 stars 45 forks source link

Factory should differentiate between controller and resource identifiers #62

Closed weierophinney closed 11 years ago

weierophinney commented 11 years ago

Currently, the ResourceController abstract factory will read the configuration for "identifiers", and, incorrectly, passes them on to the Resource object it creates and composes into the controller.

Ideally, the "identifiers" should be injected into the ResourceController, and a separate key, "resource_identifiers", should be passed to the Resource.