mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Adapt this commands to the new config store mechanism and command params
This commit is contained in:
parent
139f69ca32
commit
b14c8152da
2 changed files with 7 additions and 7 deletions
|
@ -37,9 +37,9 @@ class PEAR_Command_Config extends PEAR_Command_Common
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function PEAR_Command_Config($ui)
|
function PEAR_Command_Config(&$ui, &$config)
|
||||||
{
|
{
|
||||||
parent::PEAR_Command_Common($ui);
|
parent::PEAR_Command_Common($ui, $config);
|
||||||
}
|
}
|
||||||
|
|
||||||
// }}}
|
// }}}
|
||||||
|
@ -59,9 +59,9 @@ class PEAR_Command_Config extends PEAR_Command_Common
|
||||||
// }}}
|
// }}}
|
||||||
// {{{ run()
|
// {{{ run()
|
||||||
|
|
||||||
function run($command, $options, $params)
|
function run($command, $params)
|
||||||
{
|
{
|
||||||
$cf = $this->config;
|
$cf =& $this->config;
|
||||||
$failmsg = '';
|
$failmsg = '';
|
||||||
switch ($command) {
|
switch ($command) {
|
||||||
case 'config-show': {
|
case 'config-show': {
|
||||||
|
|
|
@ -35,7 +35,7 @@ class PEAR_Command_Login extends PEAR_Command_Common
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function PEAR_Command_Login($ui)
|
function PEAR_Command_Login(&$ui, &$config)
|
||||||
{
|
{
|
||||||
parent::PEAR_Command_Common($ui);
|
parent::PEAR_Command_Common($ui);
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ class PEAR_Command_Login extends PEAR_Command_Common
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function run($command, $options, $params)
|
function run($command, $params)
|
||||||
{
|
{
|
||||||
$cf = $this->config;
|
$cf = $this->config;
|
||||||
$failmsg = '';
|
$failmsg = '';
|
||||||
|
@ -83,7 +83,7 @@ class PEAR_Command_Login extends PEAR_Command_Common
|
||||||
}
|
}
|
||||||
$this->ui->displayLine("Logging in to $server.");
|
$this->ui->displayLine("Logging in to $server.");
|
||||||
$username = trim($this->ui->userDialog('Username', 'text', $username));
|
$username = trim($this->ui->userDialog('Username', 'text', $username));
|
||||||
|
|
||||||
$cf->set('username', $username);
|
$cf->set('username', $username);
|
||||||
$password = trim($this->ui->userDialog('Password', 'password'));
|
$password = trim($this->ui->userDialog('Password', 'password'));
|
||||||
$cf->set('password', $password);
|
$cf->set('password', $password);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue