From 778c456c3eb047140a32e65cce53491a2ee0372b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sa=C3=AFd=20Oulahal?= <said.oulahal@irstea.fr>
Date: Tue, 21 Nov 2017 11:41:44 +0100
Subject: [PATCH] Ajout bundle symfony/intl pour activer le filtre
 "localizeddate" dans IrsteaFileUploadBundle:UploadedFile:show.html.twig et
 IrsteaFileUploadBundle:UploadedFile:index.html.twig

---
 Resources/config/services.yml | 5 +++++
 composer.json                 | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/Resources/config/services.yml b/Resources/config/services.yml
index 4cc0d7fb..a9cc6e2d 100644
--- a/Resources/config/services.yml
+++ b/Resources/config/services.yml
@@ -108,3 +108,8 @@ services:
         arguments:
             - "@router"
             - "@security.csrf.token_manager"
+
+    twig.extension.intl:
+        class: Twig_Extensions_Extension_Intl
+        tags:
+            - { name: twig.extension }
\ No newline at end of file
diff --git a/composer.json b/composer.json
index 141f5fb8..953e368f 100644
--- a/composer.json
+++ b/composer.json
@@ -34,7 +34,8 @@
         "blueimp/jquery-file-upload": "~9.9",
         "white-october/pagerfanta-bundle": "~1.0",
         "willdurand/js-translation-bundle": "~2.2",
-        "xenolope/quahog": "^2.1"
+        "xenolope/quahog": "^2.1",
+        "symfony/intl": "^3.3"
     },
     "require-dev": {
         "phpunit/phpunit": "^4.8"
-- 
GitLab