[FIX] update service name for commands ISSUE:#2

This commit is contained in:
Xavier Montaña Carreras 2015-02-05 09:14:46 +01:00
parent 7f1e3a3b3c
commit 542145bd3a
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class AccountBalanceCommand extends ContainerAwareCommand
* @see Command
*/
protected function execute(InputInterface $input, OutputInterface $output) {
$account = $this->getContainer()->get('jhg_nexmo.account');
$account = $this->getContainer()->get('jhg_nexmo_account');
$balance = $account->balance();
$output->writeln(sprintf('Account balance: %f',$balance));
}

View File

@ -31,7 +31,7 @@ class SmsPricingCommand extends ContainerAwareCommand
protected function execute(InputInterface $input, OutputInterface $output) {
$country = $input->getArgument('country');
$account = $this->getContainer()->get('jhg_nexmo.account');
$account = $this->getContainer()->get('jhg_nexmo_account');
$price = $account->smsPricing($country);
if($price===false) {