fix: global namespace
This commit is contained in:
parent
7e6a7d47d6
commit
a189fd1f3b
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ return [
|
||||||
|
|
||||||
$twig->getEnvironment()->addFilter(new \Twig\TwigFilter('formatDate', function (\Twig\Environment $env, $inp) use ($container) {
|
$twig->getEnvironment()->addFilter(new \Twig\TwigFilter('formatDate', function (\Twig\Environment $env, $inp) use ($container) {
|
||||||
$locale = $env->getGlobals()['locale'];
|
$locale = $env->getGlobals()['locale'];
|
||||||
$formatter = new IntlDateFormatter($locale);
|
$formatter = new \IntlDateFormatter($locale);
|
||||||
if ($inp instanceof \DateTime) {
|
if ($inp instanceof \DateTime) {
|
||||||
$d = $inp;
|
$d = $inp;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue