Provide support for more HTTP methods in the AbstractRestfulController #3349

Merged
merged 2 commits into from Jan 8, 2013

Projects

None yet

3 participants

@weierophinney
Zend Framework member
  • Adds explicit support for OPTIONS, PATCH, and HEAD
  • Adds ability to register handler methods for custom HTTP methods
  • Refactors:
    • DRY up identifier retrieval -- added getIdentifier() method
    • DRY up parsing of content body -- added processBodyContent()
    • Moved RESTful method handling out of conditional
weierophinney added some commits Jan 4, 2013
@weierophinney weierophinney Provide support for more HTTP methods in the AbstractRestfulController
- Adds explicit support for OPTIONS, PATCH, and HEAD
- Adds ability to register handler methods for custom HTTP methods
- Refactors:
  - DRY up identifier retrieval -- added getIdentifier() method
  - DRY up parsing of content body -- added processBodyContent()
  - Moved RESTful method handling out of conditional
a20c088
@weierophinney weierophinney Remove abstract keyword from new methods
- Cannot add new abstract methods (BC break); instead, raise exceptions
  if unimplemented.
- Added in missing patch() method.
d5ff5e9
@codeinabox

Thanks for improving AbstractRestfulController, I reported a similar bug here #3268

@Maks3w Maks3w merged commit 7c52c20 into zendframework:develop Jan 8, 2013

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment