Merge pull request #3468 branch 'hotfix/fix-variable' Close
Add Zend\Stdlib\Hydrator\Strategy\ClosureStrategy

Example of use:
$hydrator->addStrategy('category', new ClosureStrategy(
    function(Category $value) {
        return (int)$value->id;
    },
    function($value) {
        return new Category((int)$value);
    }
));
Allow deletion of collections via AbstractRestfulController

- Implemented deleteList() method, and updated switch for DELETE method
  to delegateto this method when no identifier is present.
Added ability to replace a collection

- PUT on a collection (i.e., without an identifier) now invokes
  replaceList()
- Rewrote logic in DELETE case to mirror logic in PUT, GET, and DELETE
  cases.
Removed no longer used method

- Removed processPutData() as it is no longer necessary, nor used. Since
  this was only introduced for 2.1, it's safe to remove at this time.
Use strict check against bool false when determining if ID is present
Remove double negations
Added unit test for patch

- PATCH without an identifier should raise an exception
Return 405 response for PATCH without identifier and unknown HTTP methods
Fully qualify Traversable class in docblocks
Merge pull request #3482 from weierophinney/feature/rest-delete-replace-collection

Feature/rest delete replace collection
Merge branch 'hydrator_closure_strategy' of git://github.com/bondvt04/zf2 into feature/3230
[#3230] CS fixes

- Trailing whitespace
Merge branch 'feature/3230' into develop

Close #3230
Added test for #3454.
Fix #3454.

The fix involves forcing a loop through the parent resources when the
current resource is 'TYPE_DENIED'. The loop stops when we are already at
the top-level resource.
Ensure privilege escalation is not possible.

With the previous version, a deny() on a lower-lever resource was not
inherited when on a higher-lever resource an allow() was given.

See the updated test for more an example.
Ensure all children inherit permissions.
Merge branch 'hotfix/3479'

Close #3479
Fixes #3454
Merge branch 'hotfix/3479' into develop

Forward port #3479