Merge pull request #7 from xmontana/master

[FIX] update service name for commands
This commit is contained in:
javihgil 2015-02-06 08:55:38 +01:00
commit 2e8be09571
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class AccountBalanceCommand extends ContainerAwareCommand
* @see Command * @see Command
*/ */
protected function execute(InputInterface $input, OutputInterface $output) { protected function execute(InputInterface $input, OutputInterface $output) {
$account = $this->getContainer()->get('jhg_nexmo.account'); $account = $this->getContainer()->get('jhg_nexmo_account');
$balance = $account->balance(); $balance = $account->balance();
$output->writeln(sprintf('Account balance: %f',$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) { protected function execute(InputInterface $input, OutputInterface $output) {
$country = $input->getArgument('country'); $country = $input->getArgument('country');
$account = $this->getContainer()->get('jhg_nexmo.account'); $account = $this->getContainer()->get('jhg_nexmo_account');
$price = $account->smsPricing($country); $price = $account->smsPricing($country);
if($price===false) { if($price===false) {