cakephp/debug_kit — pull request #165 by garas (2014-05-03 18:38:05+00:00)
Title: Serializing Closure fails

If controller logs some exception `CakeLog::error(new Exception('error'));` then DebugKit fails to serialize and save request, because event manager of ToolbarComponent has closures as event handlers.

This commit moves closures to methods and uses $event to get event name.