<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi.<BR>
<BR>
In a previous post I was pointed to the documentation for the Consumer class which states:<BR>
<BR>
<BR>
Consumer.php<BR>
...<BR>
<BR>
* @param mixed $session An object which implements the interface<BR> * of the <A href="mailto:{@link">{@link</A> Auth_Yadis_Session} class. <BR>
<BR>
Sadly, I have not been able to find the Auth_Yadis_Session interface. Is this new and yet to be documented.<BR>
<BR>
Having trawled through the code I found there was a class Auth_Yadi_PHPSession which appears to be a concrete implementation but does not extend any interface. Later in the Manager.php code, to initialise an Auth_Yadis_Discovery we are required to pass in a Auth_Yadis_PHPSession object.<BR>
<BR>
Will there be an interface defined for Auth_Yadis_Session, or should I extend Auth_Yadis_PHPSession and overload all the methods in this class?<BR>
<BR>
Thanks.<BR>
<BR>
Using OpenID for PHP 2.0.0 rc2<BR>
<BR>
Manager.php<BR>
...<BR>
<BR>
/**<BR> * The base session class used by the Auth_Yadis_Manager. This<BR> * class wraps the default PHP session machinery and should be<BR> * subclassed if your application doesn't use PHP sessioning.<BR> *<BR> * @package OpenID<BR> */<BR>
class Auth_Yadis_PHPSession {<BR>
<BR>
<BR>
... <BR>
<BR>
/**<BR> * Initialize a discovery object.<BR> *<BR> * @param Auth_Yadis_PHPSession $session An object which<BR> * implements the Auth_Yadis_PHPSession API.<BR> * @param string $url The URL on which to attempt discovery.<BR> * @param string $session_key_suffix The optional session key<BR> * suffix override.<BR> */<BR> function Auth_Yadis_Discovery(&$session, $url,<BR> $session_key_suffix = null)<BR> {<BR><br /><hr />With Live Spaces email straight to your blog. Upload jokes, photos and more. It's free! <a href='http://specials.uk.msn.com/spaces/default.aspx' target='_new'>It's free!</a></body>
</html>