mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
add the twig date extension
The twig date extension allow to print message like "update 1 hour ago". Documentation here : http://twig.sensiolabs.org/doc/extensions/date.html
This commit is contained in:
@@ -28,6 +28,13 @@ services:
|
||||
class: Twig_Extensions_Extension_Intl
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
twig_date:
|
||||
class: Twig_Extensions_Extension_Date
|
||||
arguments:
|
||||
- "@translator"
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
chill.main.form.type.translatable.string:
|
||||
class: Chill\MainBundle\Form\Type\TranslatableStringFormType
|
||||
|
Reference in New Issue
Block a user