gibilogic / tinymce-bundle

Bundle for connecting TinyMCE (WYSIWYG editor) to your Symfony2 project
7 stars 5 forks source link

The Twig_Function_Method class is deprecated since version 1.12 #13

Closed 7eey closed 9 years ago

7eey commented 9 years ago

Hi,

In method "getFunctions" of StfalconTinymceExtension class can you change the line 'tinymce_init' => new \Twig_Function_Method($this, 'tinymceInit', array('is_safe' => array('html'))) by new \Twig_SimpleFunction('tinymce_init', [$this, 'tinymceInit'], ['is_safe' => ['html']])

Thks Jérém

zanardigit commented 9 years ago

Thank you! This is already fixed in version 1.0.1, available on Packagist, and in master branch.

7eey commented 9 years ago

Thank you too!