scopeConfig = $scopeConfig; $this->patterns = $patterns; parent::__construct( $this->scopeConfig->getValue(self::XML_PATH_STRATEGY) == self::DICTIONARY_STRATEGY, self::DICTIONARY_FILE_NAME ); } /** * Is Embedded Strategy selected * * @return bool */ public function isEmbeddedStrategy() { return ($this->scopeConfig->getValue(self::XML_PATH_STRATEGY) == self::EMBEDDED_STRATEGY); } /** * Is Dictionary Strategy selected * * @return bool */ public function dictionaryEnabled() { return ($this->scopeConfig->getValue(self::XML_PATH_STRATEGY) == self::DICTIONARY_STRATEGY); } /** * Retrieve translation patterns * * @return string[] */ public function getPatterns() { return $this->patterns; } }