Skip to content

Commit b14c815

Browse files
committed
Adapt this commands to the new config store mechanism and command params
1 parent 139f69c commit b14c815

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pear/PEAR/Command/Config.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ class PEAR_Command_Config extends PEAR_Command_Common
3737
*
3838
* @access public
3939
*/
40-
function PEAR_Command_Config($ui)
40+
function PEAR_Command_Config(&$ui, &$config)
4141
{
42-
parent::PEAR_Command_Common($ui);
42+
parent::PEAR_Command_Common($ui, $config);
4343
}
4444

4545
// }}}
@@ -59,9 +59,9 @@ function getCommands()
5959
// }}}
6060
// {{{ run()
6161

62-
function run($command, $options, $params)
62+
function run($command, $params)
6363
{
64-
$cf = $this->config;
64+
$cf =& $this->config;
6565
$failmsg = '';
6666
switch ($command) {
6767
case 'config-show': {

pear/PEAR/Command/Login.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class PEAR_Command_Login extends PEAR_Command_Common
3535
*
3636
* @access public
3737
*/
38-
function PEAR_Command_Login($ui)
38+
function PEAR_Command_Login(&$ui, &$config)
3939
{
4040
parent::PEAR_Command_Common($ui);
4141
}
@@ -70,7 +70,7 @@ function getCommands()
7070
*
7171
* @access public
7272
*/
73-
function run($command, $options, $params)
73+
function run($command, $params)
7474
{
7575
$cf = $this->config;
7676
$failmsg = '';
@@ -83,7 +83,7 @@ function run($command, $options, $params)
8383
}
8484
$this->ui->displayLine("Logging in to $server.");
8585
$username = trim($this->ui->userDialog('Username', 'text', $username));
86-
86+
8787
$cf->set('username', $username);
8888
$password = trim($this->ui->userDialog('Password', 'password'));
8989
$cf->set('password', $password);

0 commit comments

Comments
 (0)