Example #1
0
 public function getCurrency()
 {
     if (null !== ($user = $this->getUser()) && null !== $user->getCurrency()) {
         return $user->getCurrency();
     }
     return parent::getCurrency();
 }
 /**
  * {@inheritdoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('amount', 'sylius_money', array('label' => 'sylius.form.payment_method.fee_calculator.fixed.amount', 'currency' => $this->currencyContext->getCurrency()));
 }