zfcampus/zf-rest — pull request #7 by weierophinney (2013-12-17 16:27:02+00:00)
Title: Empty 'params' in Resource Listener `fetchAll()`

The resource listener [`fetchAll()`](https://github.com/zfcampus/zf-rest/blob/master/src/ZF/Rest/AbstractResourceListener.php#L173) method expects params to be passed, and it gets them from the [event's params](https://github.com/zfcampus/zf-rest/blob/master/src/ZF/Rest/AbstractResourceListener.php#L102).

Those params are set by the Resource, before it [triggers the event](https://github.com/zfcampus/zf-rest/blob/master/src/ZF/Rest/Resource.php#L497) to whatever params were passed to the `fetchAll()` method. The RestController however, does not ever [pass params to that method](https://github.com/zfcampus/zf-rest/blob/master/src/ZF/Rest/RestController.php#L476).

I had expected this to be the whitelisted parameters, but now I'm not quite sure *what* it should be. If it is the whitelisted params, they're not actually whitelisted until [*after* the collection is created by the listener](https://github.com/zfcampus/zf-rest/blob/master/src/ZF/Rest/Factory/RestControllerFactory.php#L188).