nodesagency/Platform-Crud-Plugin — pull request #7 by lorenzo (2012-07-12 20:43:27+00:00)
Title: Refactoring events triggering to allow any event listener to return a

CakeResponse. Doing so will stop method execution and render response immediately

This helps unit testing the component properly as you can mock _trigger() and also removes hacks like in ApiEvent class that stops script execution completely to achieve the same effect.