Merge pull request #7 from xmontana/master
[FIX] update service name for commands
This commit is contained in:
commit
2e8be09571
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user