From bd9830c3f2f0be68164861c825bcd9248ae1ea4d Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Wed, 6 Nov 2024 14:02:29 +0100 Subject: [PATCH] IBX-8805: Dropped deprecated Twig Functions&Filters --- src/lib/Templating/Twig/DateTimeExtension.php | 60 ------------------- 1 file changed, 60 deletions(-) diff --git a/src/lib/Templating/Twig/DateTimeExtension.php b/src/lib/Templating/Twig/DateTimeExtension.php index 6ec0d73..184fa4b 100644 --- a/src/lib/Templating/Twig/DateTimeExtension.php +++ b/src/lib/Templating/Twig/DateTimeExtension.php @@ -106,66 +106,6 @@ function ($date, $timezone = null) { return $this->format($this->fullTimeFormatter, $date, $timezone); } ), - new TwigFilter( - 'ez_short_datetime', - function ($date, $timezone = null) { - return $this->format($this->shortDateTimeFormatter, $date, $timezone); - }, - [ - 'deprecated' => '4.0', - 'alternative' => 'ibexa_short_datetime', - ] - ), - new TwigFilter( - 'ez_short_date', - function ($date, $timezone = null) { - return $this->format($this->shortDateFormatter, $date, $timezone); - }, - [ - 'deprecated' => '4.0', - 'alternative' => 'ibexa_short_date', - ] - ), - new TwigFilter( - 'ez_short_time', - function ($date, $timezone = null) { - return $this->format($this->shortTimeFormatter, $date, $timezone); - }, - [ - 'deprecated' => '4.0', - 'alternative' => 'ibexa_short_time', - ] - ), - new TwigFilter( - 'ez_full_datetime', - function ($date, $timezone = null) { - return $this->format($this->fullDateTimeFormatter, $date, $timezone); - }, - [ - 'deprecated' => '4.0', - 'alternative' => 'ibexa_full_datetime', - ] - ), - new TwigFilter( - 'ez_full_date', - function ($date, $timezone = null) { - return $this->format($this->fullDateFormatter, $date, $timezone); - }, - [ - 'deprecated' => '4.0', - 'alternative' => 'ibexa_full_date', - ] - ), - new TwigFilter( - 'ez_full_time', - function ($date, $timezone = null) { - return $this->format($this->fullTimeFormatter, $date, $timezone); - }, - [ - 'deprecated' => '4.0', - 'alternative' => 'ibexa_full_time', - ] - ), ]; }