$context has to be public because of accessing it in PHP 5.3 lambda function