em = $em ; $this->merchantUtils = $merchantUtils ; } public function getTaxRatesList() { $taxRatesList =array(); $taxRates = $this->em->getRepository(TaxRateInterface::class)->findAll(); foreach ($taxRates as $taxRate){ $taxRatesList[$taxRate->getId()]['title'] = $taxRate->getTitle(); $taxRatesList[$taxRate->getId()]['value'] = $taxRate->getValue(); } $taxRatesList['default']['title'] = $this->merchantUtils->getMerchantCurrentTaxRate()->getTitle(); $taxRatesList['default']['value'] = $this->merchantUtils->getMerchantCurrentTaxRate()->getValue(); return $taxRatesList; } }