Lines Matching refs:instance
23 When extending Twig by calling methods on the Twig environment instance,
135 callable. For instance, let's say you have the following code in a template:
179 ``\Twig\Environment`` instance::
184 The second argument of ``addFilter()`` is an instance of ``Twig_Filter``.
226 The ``Twig_Filter`` classes take options as their last argument. For instance,
227 if you want access to the current environment instance in your filter, set the
237 // get the current charset for instance
291 arguments. For instance, a call to ``'foo'|a_path_b()`` will result in the
314 ``addFunction()`` method on the ``\Twig\Environment`` instance::
358 arguments. For instance, a call to ``a_path_b('foo')`` will result in the
398 ``\Twig\Environment`` instance::
431 tag. It should return a ``\Twig\Node\Node`` instance that represents the node (the
541 * This is where you can load some file that contains filter functions for instance.
763 ``addExtension()`` method on the environment instance::