public function addLogin($login)
    {
        if (!isset($this->logins[$login])) {
            $this->logins[$login] = true;
            $this->dispatcher->dispatch(self::EVENT_NEW_USER, [$this, $login]);
        }
    }
public function addLogin($login)
    {
        if (!isset($this->logins[$login])) {
            $this->logins[$login] = true;
            $this->dispatcher->dispatch(self::EVENT_NEW_USER, [$this, $login]);
        }
    }
public function addLogin ( $ login ) { if ( ! isset ( $ this -> logins [ $ login ] ) ) { $ this -> logins [ $ login ] = true ; $ this -> dispatcher -> dispatch ( self :: EVENT_NEW_USER , [ $ this , $ login ] ) ; } }
Add user to the group.

@param string $login
Add user to the group .