$this->twig->
addExtension($extension);
} if ($this->twig->
hasExtension(CoreExtension::
class) &&
$this->platformTwig->
hasExtension(CoreExtension::
class)) { /** @var CoreExtension $coreExtensionInternal */
$coreExtensionInternal =
$this->twig->
getExtension(CoreExtension::
class);
/** @var CoreExtension $coreExtensionGlobal */
$coreExtensionGlobal =
$this->platformTwig->
getExtension(CoreExtension::
class);
$coreExtensionInternal->
setTimezone($coreExtensionGlobal->
getTimezone());
$coreExtensionInternal->
setDateFormat(...
$coreExtensionGlobal->
getDateFormat());
$coreExtensionInternal->
setNumberFormat(...
$coreExtensionGlobal->
getNumberFormat());
} } /**
* @param array<string, mixed> $data
*
* @throws StringTemplateRenderingException
*/
public function render(string
$templateSource, array
$data, Context
$context, bool
$htmlEscape = true
): string
{ $name =
md5($templateSource . !
$htmlEscape);