Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Remove deprecated calls Twig_Function_Method #79

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Remove deprecated calls Twig_Function_Method #79

wants to merge 2 commits into from

Conversation

tobo-pl
Copy link

@tobo-pl tobo-pl commented Oct 15, 2015

Please remove deprecated twig calls Twig_Function_Method in /Hearsay/RequireJSBundle/Twig/Extension/RequireJSExtension

public function getFunctions()
    {
        return array(
            'require_js_initialize' => new \Twig_Function_Method($this, 'renderInitialize', array('is_safe' => array('html'))),
        );
    }

should be replaced by:

public function getFunctions()
    {
        return array(
             new \Twig_SimpleFunction('require_js_initialize', array($this, 'renderInitialize'), array('is_safe' => array('html'))),
        );

Igor Timoshenko added 2 commits July 21, 2013 19:27
@tobo-pl tobo-pl changed the title 1.0 Remove deprecated calls \Twig_Function_Method Oct 15, 2015
@tobo-pl tobo-pl changed the title Remove deprecated calls \Twig_Function_Method Remove deprecated calls Twig_Function_Method Oct 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant