public function findOneByLabel($currencyLabel);
/** * Constructs the currency detector service by finding the default currency * * @param string $currencyLabel * @param CurrencyManagerInterface $currencyManager */ public function __construct($currencyLabel, CurrencyManagerInterface $currencyManager) { $this->currency = $currencyManager->findOneByLabel($currencyLabel); }