[FIX] update service name for commands ISSUE:#2
This commit is contained in:
parent
7f1e3a3b3c
commit
542145bd3a
|
@ -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