doctrine/DoctrineModule — pull request #33 by bakura10 (2012-06-15 22:02:07+00:00)
Title: Allow to specify specific field to identity, and more flexible callable function

I have made two small modifications to the Authentication adapter :

1) The first one deals with credentialCallable : with MD5-like hashing, the current way works well, however it doesn't work using Blowfish crypt. So now, if the credentialCallable returns true, it considers to be valid.

2) I don't really want to store the full identity object, but rather only the id. So I can specify an identityCallable closure that take an identity object, and returns one field or an array.

I know it overlaps with some features of ZfcUser, but it's pretty useful to have them here, tbh.