Zend\Mvc\Controller\AbstractRestfulController: various fixes to Json handling #3414

Merged
merged 3 commits into from Jan 11, 2013

Conversation

Projects
None yet
2 participants
Member

ralphschindler commented Jan 11, 2013

Zend\Mvc\Controller\AbstractRestfulController

  • various fixes to Json handling
  • decode() now uses controller property to determine json return type (object/array)

ralphschindler added some commits Jan 11, 2013

Zend\Mvc\Controller\AbstractRestfulController:
- Fixed AbstractRestfulController to consult Content-type
- Made Json::decode use array notation by default
- Added property to set Json return type in controller
ZendTest\Mvc\Controller\RestfulControllerTest
* reset the shared event manager so that test will pass when run with others
Zend\Mvc\Controller\AbstractRestController:
- fixed content-type header for hal+json

@weierophinney weierophinney merged commit 82feaab into zendframework:develop Jan 11, 2013

@ghost ghost assigned weierophinney Jan 11, 2013

cgmartin pushed a commit to cgmartin/zf2 that referenced this pull request Jan 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment