N°3169 - Add feature to connect Gsuite mail box with OAuth

N°2504 - Add feature to connect Office mail box with OAuth2 for Microsoft Graph
N°5102 - Allow to send emails (eg. notifications) using GSuite SMTP and OAuth
 * 2.7 migration (wip)
This commit is contained in:
Eric Espie
2022-05-13 11:37:09 +02:00
parent 4b870bcf1e
commit 134736dce5
563 changed files with 78319 additions and 235 deletions

View File

@@ -24,8 +24,10 @@ class TwigHelper
Extension::RegisterTwigExtensions($oTwig);
$sLocalPath = utils::LocalPath($sViewPath);
$sLocalPath = str_replace('env-'.utils::GetCurrentEnvironment(), 'twig', $sLocalPath);
$sCachePath = utils::GetCachePath().$sLocalPath;
$oTwig->setCache($sCachePath);
if (!utils::IsDevelopmentEnvironment()) {
$sCachePath = utils::GetCachePath().$sLocalPath;
$oTwig->setCache($sCachePath);
}
return $oTwig;
}