Browse Source

minor fixes

Olivier Massot 5 years ago
parent
commit
49f6c60450
3 changed files with 12 additions and 35 deletions
  1. 3 2
      README.md
  2. 3 29
      ot_core/Classes/Cache/OtCacheManager.php
  3. 6 4
      ot_templating/Readme.md

+ 3 - 2
README.md

@@ -2,7 +2,7 @@
 
 
 ### Pré-requis:
 ### Pré-requis:
 
 
-* php 7.2
+* php 7.4
 * Typo3 v9.5 (en mode composer)
 * Typo3 v9.5 (en mode composer)
 
 
 ### Les extensions
 ### Les extensions
@@ -17,9 +17,10 @@ du répertoire de l'application typo3
 
 
     	"autoload": {
     	"autoload": {
     		"psr-4": {
     		"psr-4": {
-                "Opentalent\\OtWidgets\\": "public/typo3conf/ext/ot_widgets/Classes",
+                "Opentalent\\OtCore\\": "public/typo3conf/ext/ot_core/Classes",
                 "Opentalent\\OtConnect\\": "public/typo3conf/ext/ot_connect/Classes",
                 "Opentalent\\OtConnect\\": "public/typo3conf/ext/ot_connect/Classes",
                 "Opentalent\\OtTemplating\\": "public/typo3conf/ext/ot_templating/Classes",
                 "Opentalent\\OtTemplating\\": "public/typo3conf/ext/ot_templating/Classes",
+                "Opentalent\\OtStats\\": "public/typo3conf/ext/ot_stats/Classes",
                 "Opentalent\\OtAdmin\\": "public/typo3conf/ext/ot_admin/Classes"
                 "Opentalent\\OtAdmin\\": "public/typo3conf/ext/ot_admin/Classes"
     		}
     		}
     	}
     	}

+ 3 - 29
ot_core/Classes/Cache/OtCacheManager.php

@@ -49,38 +49,12 @@ class OtCacheManager
 
 
     /**
     /**
      * Clear cache framework and opcode caches
      * Clear cache framework and opcode caches
-     * (@see TYPO3\CMS\Install\Controller\MaintenanceController )
+     *
+     * @see TYPO3\CMS\Install\Controller\MaintenanceController
      */
      */
-    public static function clearAllCache(): ResponseInterface
+    public static function clearAllCache()
     {
     {
         GeneralUtility::makeInstance(ClearCacheService::class)->clearAll();
         GeneralUtility::makeInstance(ClearCacheService::class)->clearAll();
         GeneralUtility::makeInstance(OpcodeCacheService::class)->clearAllActive();
         GeneralUtility::makeInstance(OpcodeCacheService::class)->clearAllActive();
     }
     }
-
-    /**
-     * Clear typo3temp/assets
-     * (@see TYPO3\CMS\Install\Controller\MaintenanceController )
-     */
-    public static function clearAssetsTempfiles()
-    {
-        $typo3tempFileService = GeneralUtility::makeInstance(Typo3tempFileService::class);
-
-        try {
-            $typo3tempFileService->clearAssetsFolder("/typo3temp/assets/css");
-        } catch (RuntimeException $e) {
-            // 1501781454 code means directory does not exist, we can ignore this error
-            if ($e->getCode() != 1501781454) {
-                throw $e;
-            }
-        }
-
-        try {
-            $typo3tempFileService->clearAssetsFolder("/typo3temp/assets/js");
-        } catch (RuntimeException $e) {
-            // 1501781454 code means directory does not exist, we can ignore this error
-            if ($e->getCode() != 1501781454) {
-                throw $e;
-            }
-        }
-    }
 }
 }

+ 6 - 4
ot_templating/Readme.md

@@ -23,11 +23,13 @@ Editer le gabarit, aller à la page 'Inclusions' et inclure les extensions suiva
 
 
 * Fluid Content Elements (fluid_styled_content)
 * Fluid Content Elements (fluid_styled_content)
 * Fluid Content Elements CSS (optional) (fluid_styled_content)
 * Fluid Content Elements CSS (optional) (fluid_styled_content)
-* Flux PAGE rendering (flux)
+* Form (form)
+* News (news)
+* Frontend editing (frontend_editing)
+* Editable Fluid Styled Content v9 (frontend_editing)
 * Templating (ot_templating)
 * Templating (ot_templating)
-* Connect (ot_connect)
 
 
-Ensuite, ajouter les lignes suivantes dans le champs constants:
+Ensuite, ajouter les lignes suivantes dans le champs `constants`:
 
 
     plugin.tx_ottemplating {
     plugin.tx_ottemplating {
         settings {
         settings {
@@ -35,7 +37,7 @@ Ensuite, ajouter les lignes suivantes dans le champs constants:
         }
         }
     }
     }
 
 
-Pour connaitre les variables de configuration à redéfinir ici, voir le fichier `ot_templating/Configuration/TypoScript/constants.txt`
+Pour connaitre le contenu exact, voir le fichier `ot_templating/Configuration/TypoScript/constants.txt`
 
 
 Enregistrer, et quitter.
 Enregistrer, et quitter.