mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-29 22:46:51 +01:00
Add Twig TypeCastingExtension
This commit is contained in:
@@ -31,6 +31,8 @@ if($dev_mode) {
|
||||
}
|
||||
unset($dev_mode);
|
||||
|
||||
$twig->addExtension(new MyAAC\Twig\Extension\TypeCastingExtension());
|
||||
|
||||
$filter = new TwigFilter('timeago', function ($datetime) {
|
||||
|
||||
$time = time() - strtotime($datetime);
|
||||
|
||||
Reference in New Issue
Block a user