<?php
namespace Rawafed\PaymentBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class ExchangeRatesUpdateCommand extends ContainerAwareCommand
{
protected function configure()
{
$this
->setName('rawafed:payment:update-exchange-rates')
;
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$currencyManager = $this->getContainer()->get('currency_manager');
$currencyManager->refreshExchangeRates();
}
}