public function regenerateTemplates()
    {
        $this->generateTemplatesCache();
        $domains = Cache::getInstance()->getDataFromFile(CONFIG_DIR . DIRECTORY_SEPARATOR . 'domains.json', Cache::JSON, true);
        $translations = [];
        if (is_array($domains)) {
            $translations = $this->parsePathTranslations($domains);
        }
        $translations[] = t('Plantillas regeneradas correctamente');
        return $translations;
    }
public function regenerateTemplates()
    {
        $this->generateTemplatesCache();
        $domains = Cache::getInstance()->getDataFromFile(CONFIG_DIR . DIRECTORY_SEPARATOR . 'domains.json', Cache::JSON, true);
        $translations = [];
        if (is_array($domains)) {
            $translations = $this->parsePathTranslations($domains);
        }
        $translations[] = t('Plantillas regeneradas correctamente');
        return $translations;
    }
public function regenerateTemplates ( ) { $ this -> generateTemplatesCache ( ) ; $ domains = Cache :: getInstance ( ) -> getDataFromFile ( CONFIG_DIR . DIRECTORY_SEPARATOR . 'domains.json' , Cache :: JSON , true ) ; $ translations = [ ] ; if ( is_array ( $ domains ) ) { $ translations = $ this -> parsePathTranslations ( $ domains ) ; } $ translations [ ] = t ( 'Plantillas regeneradas correctamente' ) ; return $ translations ; }
Servicio que regenera todas las plantillas
@return array
Servicio que regenera todas las plantillas