Fixed extension clashes
This commit is contained in:
@@ -50,7 +50,9 @@ class ServicesProvider
|
|||||||
$container->extend('view', function ($view, $c) {
|
$container->extend('view', function ($view, $c) {
|
||||||
$twig = $view->getEnvironment();
|
$twig = $view->getEnvironment();
|
||||||
|
|
||||||
$twig->addExtension(new IntlExtension());
|
if (!$twig->hasExtension('Twig\Extra\Intl\IntlExtension')) {
|
||||||
|
$twig->addExtension(new IntlExtension());
|
||||||
|
}
|
||||||
$twig->addExtension(new FormatCronExtension($c));
|
$twig->addExtension(new FormatCronExtension($c));
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
|||||||
Reference in New Issue
Block a user