-
Notifications
You must be signed in to change notification settings - Fork 64
Can't set params for Hydrator #269
Comments
Here's my response to that: https://groups.google.com/a/zend.com/d/msg/apigility-users/HLZ1KZKi17A/ZewP8VkDSAEJ |
You could subclass it as you did, or you could provide a factory for the ClassMethods hydrator and assign a different name: https://groups.google.com/a/zend.com/d/msg/apigility-users/HLZ1KZKi17A/f3GFcwlLNFEJ |
@dstockto Thanks, that's what I really want.
There is only one entries added in Admin UI, which is correct; if I configure hydrators below:
or
it'll add 2 entries in selectors. Is it a bug or I do things wrong? I'm working with dev-develop, thanks. |
@snowwolf007cn I think that the hydrator manager will let you get a hydrator by either the key or the full class name. It sounds like Apigility is exposing both of these as well. |
This repository has been closed and moved to laminas-api-tools/api-tools-admin; a new issue has been opened at laminas-api-tools/api-tools-admin#34. |
To solve the problem How to set repsonse object key in camelcase but not in underscore?,the best way is to use the ClassMethod Hydrator to false. But the constructor params can't be set in admin UI.
The text was updated successfully, but these errors were encountered: