From 542145bd3aedecf481058fab1c9193b9bd2ed1f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Monta=C3=B1a=20Carreras?= Date: Thu, 5 Feb 2015 09:14:46 +0100 Subject: [PATCH] [FIX] update service name for commands ISSUE:#2 --- Command/AccountBalanceCommand.php | 2 +- Command/SmsPricingCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Command/AccountBalanceCommand.php b/Command/AccountBalanceCommand.php index 2bd3f3d..14eeca6 100644 --- a/Command/AccountBalanceCommand.php +++ b/Command/AccountBalanceCommand.php @@ -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)); } diff --git a/Command/SmsPricingCommand.php b/Command/SmsPricingCommand.php index ba936d2..540c7b1 100644 --- a/Command/SmsPricingCommand.php +++ b/Command/SmsPricingCommand.php @@ -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) {