mako-framework/framework — pull request #109 by aldoanizio (2014-07-24 03:25:48+00:00)
Title: Use Query statements in Gatekeeper UserProvider

Possibility to parse additional query statements to UserProvider when instantiate new Gatekeeper

Eg:

// User Provider

$userProvider = new UserProvider('\app\models\User', function($query)
{
$query->where('my_custom_field', '=', 'my_custom_value');
});

// Gatekeeper

$gatekeeper = new Gatekeeper($request, $response, $session, $userProvider);

// Other stuffs

.....