Closed macnibblet closed 11 years ago
Example usage of this would be
$controller = new RestResourceController(); $controller->getEventManager()->attach('getList.pre', function(Event $e) { /** * @var $target \PhlyRestfully\ResourceController */ $target = $e->getTarget(); $request = $target->getRequest(); $resource = $target->getResource(); $resource->setEventParams(array( 'range' => $request->getQuery('range', false) )); });
Example usage of this would be