Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix for Twig deprecated functions
  • Loading branch information
Denis Medved committed Dec 10, 2015
commit 2ee713183090298b839f997cbd40c85a88c3877a
8 changes: 4 additions & 4 deletions Twig/Extension/MessageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public function __construct(ParticipantProviderInterface $participantProvider, P
public function getFunctions()
{
return array(
'fos_message_is_read' => new \Twig_Function_Method($this, 'isRead'),
'fos_message_nb_unread' => new \Twig_Function_Method($this, 'getNbUnread'),
'fos_message_can_delete_thread' => new \Twig_Function_Method($this, 'canDeleteThread'),
'fos_message_deleted_by_participant' => new \Twig_Function_Method($this, 'isThreadDeletedByParticipant')
new \Twig_SimpleFunction('fos_message_is_read', array($this, 'isRead')),
new \Twig_SimpleFunction('fos_message_nb_unread', array($this, 'getNbUnread')),
new \Twig_SimpleFunction('fos_message_can_delete_thread', array($this, 'canDeleteThread')),
new \Twig_SimpleFunction('fos_message_deleted_by_participant', array($this, 'isThreadDeletedByParticipant')),
);
}

Expand Down