public function login () {
		$this->connectIfNeeded(false);
		$this->handle->login();
		$this->onLogin(new Event(['sender' => $this, 'data' => $this->handle->user]));
	}
public function login () {
		$this->connectIfNeeded(false);
		$this->handle->login();
		$this->onLogin(new Event(['sender' => $this, 'data' => $this->handle->user]));
	}
public function login ( ) { $ this -> connectIfNeeded ( false ) ; $ this -> handle -> login ( ) ; $ this -> onLogin ( new Event ( [ 'sender' => $ this , 'data' => $ this -> handle -> user ] ) ) ; }
Log into the FTP server. If connection is not openned, it will be openned before login.

@param string    $user          Username used for log on FTP server.
@param string    $password      Password used for log on FTP server.

@throws FtpException if connection failed.
Log into the FTP server . If connection is not openned it will be openned before login .