The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Moved login parameter fetching to the service itself

2.1
Gergely POLONKAI 10 years ago
parent aaf9b24174
commit eba3ecd63d
  1. 5
      Command/SendCommand.php
  2. 4
      Service/Sender.php

@ -20,10 +20,7 @@ class SendCommand extends ContainerAwareCommand
$container = $this->getContainer();
$sender = $container->get('gergelypolonkai_smssender.sender');
$sender->login(
$container->getParameter('username'),
$container->getParameter('password')
);
$sender->login();
$sender->sendMessage($input->getArgument('recipient'), $input->getArgument('message'), array());
$sender->logout();
}

@ -34,9 +34,9 @@ class Sender
);
}
public function login($username, $password)
public function login()
{
if ($this->sender->login($username, $password) === true) {
if ($this->sender->login($this->container->getParameter('username'), $this->container->getParameter('password')) === true) {
$this->loggedIn = true;
}
}

Loading…
Cancel
Save