David Baird wrote:
Maypole::call_authenticate() ends with this:
$r->authenticate($r); # Interface consistency is a Good Thing
Can we drop the ($r)? What's it there for?
I actually thought the comment explained it pretty well, especially in
the context of the immediately preceding statement.
If you add an authenticate method to a model class, it has two
parameters: the invocant (the model class) and the request.
So if you override the authenticate method in the driver class, it has
the same two parameters: the invocant (the driver) and the request.
Made sense to Simon C and it makes sense to me. It will make even more
sense if we do eventually separate the driver and request :)
Cheers, Dave
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.9/116 - Release Date: 30/09/05
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel