public function storeConfiguration($data)
 {
     return parent::storeAll($data);
 }
Esempio n. 2
0
 /**
  * Loads the dictionary.
  *
  * @param string $locale the locale to load
  */
 private function loadDictionary($locale)
 {
     $path = $this->app->getModulesDirectory() . DIRECTORY_SEPARATOR . $this->module . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . $locale . '.json';
     $dictionaryStorageEngine = new JsonStorageEngine($path);
     $this->app->getTranslator()->addToDictionary($dictionaryStorageEngine->fetchAll());
 }