Fixed extension clashes

This commit is contained in:
bwilliams committed 2023-05-31 16:22:03 +01:00
1 parent e4db24ee8d
commit 768318b43a
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -107,4 +107,4 @@ class TaskController extends SimpleController
'tasks' => $tasks
]);
}
}
}
+3 -1
View File
@@ -50,7 +50,9 @@ class ServicesProvider
$container->extend('view', function ($view, $c) {
$twig = $view->getEnvironment();
$twig->addExtension(new IntlExtension());
if (!$twig->hasExtension('Twig\Extra\Intl\IntlExtension')) {
$twig->addExtension(new IntlExtension());
}
$twig->addExtension(new FormatCronExtension($c));
return $view;