src/Authorization/SecuredAccessTrait.php
public function addAllowedUsername($username, $attribute = 'access')
    {
        $usernameStr = (string) $username;
        if (!isset($this->allowedUsernames[$usernameStr])) {
            $this->allowedUsernames[$usernameStr] = array();
        }
        $this->allowedUsernames[$usernameStr][(string) $attribute] = true;
        return $this;
    }
public function addAllowedUsername($username, $attribute = 'access')
    {
        $usernameStr = (string) $username;
        if (!isset($this->allowedUsernames[$usernameStr])) {
            $this->allowedUsernames[$usernameStr] = array();
        }
        $this->allowedUsernames[$usernameStr][(string) $attribute] = true;
        return $this;
    }
public function addAllowedUsername ( $ username , $ attribute = 'access' ) { $ usernameStr = ( string ) $ username ; if ( ! isset ( $ this -> allowedUsernames [ $ usernameStr ] ) ) { $ this -> allowedUsernames [ $ usernameStr ] = array ( ) ; } $ this -> allowedUsernames [ $ usernameStr ] [ ( string ) $ attribute ] = true ; return $ this ; }
Allow username to access
@param string $username Username to allow access
@param string $attribute Attribute
@return self $this object (to allow method chaining)
Allow username to access