public function makeTwigTokenParsers($parsers = [])
    {
        if (!is_array($parsers)) {
            $parsers = [];
        }

        $extraParsers = $this->listTokenParsers();
        foreach ($extraParsers as $obj) {
            if (!$obj instanceof Twig_TokenParser) {
                continue;
            }

            $parsers[] = $obj;
        }

        return $parsers;
    }
public function makeTwigTokenParsers($parsers = [])
    {
        if (!is_array($parsers)) {
            $parsers = [];
        }

        $extraParsers = $this->listTokenParsers();
        foreach ($extraParsers as $obj) {
            if (!$obj instanceof Twig_TokenParser) {
                continue;
            }

            $parsers[] = $obj;
        }

        return $parsers;
    }
public function makeTwigTokenParsers ( $ parsers = [ ] ) { if ( ! is_array ( $ parsers ) ) { $ parsers = [ ] ; } $ extraParsers = $ this -> listTokenParsers ( ) ; foreach ( $ extraParsers as $ obj ) { if ( ! $ obj instanceof Twig_TokenParser ) { continue ; } $ parsers [ ] = $ obj ; } return $ parsers ; }
Makes a set of Twig token parsers for use in a twig extension.
@param  array $parsers Current collection
@return array
Makes a set of Twig token parsers for use in a twig extension .