vendor/rawafed/payment-bundle/Command/ExchangeRatesUpdateCommand.php line 8

Open in your IDE?
  1. <?php
  2. namespace Rawafed\PaymentBundle\Command;
  3. use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
  4. use Symfony\Component\Console\Input\InputInterface;
  5. use Symfony\Component\Console\Output\OutputInterface;
  6. class ExchangeRatesUpdateCommand extends ContainerAwareCommand
  7. {
  8.     protected function configure()
  9.     {
  10.         $this
  11.             ->setName('rawafed:payment:update-exchange-rates')
  12.         ;
  13.     }
  14.     protected function execute(InputInterface $inputOutputInterface $output)
  15.     {
  16.         $currencyManager $this->getContainer()->get('currency_manager');
  17.         $currencyManager->refreshExchangeRates();
  18.     }
  19. }