kohana/core — pull request #175 by chvanikoff (2011-11-04 01:05:11+00:00)
Title: added wrapper for closure to make it serializable, fixed bug #4301

Closure wrapper code was generally taken from http://www.htmlist.com/development/extending-php-5-3-closures-with-serialization-and-reflection/ (fixed code to satisfy Kohana cs, added docblocks)

Route::__construct() wraps closure with that class to make it serializable (fixes http://dev.kohanaframework.org/issues/4301)