Revision: 81
http://sourceforge.net/p/beeframework/code/81
Author: m_plomer
Date: 2013-09-02 03:36:09 +0000 (Mon, 02 Sep 2013)
Log Message:
-----------
- convenience UserDetails impl based on Doctrine 2
Modified Paths:
--------------
trunk/framework/Bee/Security/UserDetails/Doctrine2/SimpleUser.php
trunk/framework/Bee/Security/UserDetails/Doctrine2/UserBase.php
Modified: trunk/framework/Bee/Security/UserDetails/Doctrine2/SimpleUser.php
===================================================================
--- trunk/framework/Bee/Security/UserDetails/Doctrine2/SimpleUser.php 2013-09-02 02:50:53 UTC (rev 80)
+++ trunk/framework/Bee/Security/UserDetails/Doctrine2/SimpleUser.php 2013-09-02 03:36:09 UTC (rev 81)
@@ -22,7 +22,7 @@
*/
private $rolesTransformed = null;
- /**
+ /*
* Returns the authorities granted to the user. Cannot return <code>null</code>.
*
* @return Bee_Security_IGrantedAuthority[] the authorities, sorted by natural key (never <code>null</code>)
Modified: trunk/framework/Bee/Security/UserDetails/Doctrine2/UserBase.php
===================================================================
--- trunk/framework/Bee/Security/UserDetails/Doctrine2/UserBase.php 2013-09-02 02:50:53 UTC (rev 80)
+++ trunk/framework/Bee/Security/UserDetails/Doctrine2/UserBase.php 2013-09-02 03:36:09 UTC (rev 81)
@@ -141,4 +141,18 @@
public function __toString() {
return $this->getUsername();
}
+
+ /**
+ * @param string $name
+ */
+ public function setName($name) {
+ $this->name = $name;
+ }
+
+ /**
+ * @return string
+ */
+ public function getName() {
+ return $this->name ? $this->name : $this->getUsername();
+ }
}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|