Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.705 kB

Configuration

sfTwigPlugin tries to follow the convention over configuration guidelines where possible. Still there is the possibility of configuring sfTwigView through standard symfony settings.

Settings

Right now the configuration is kinda limited or not needed. sfTwigView uses sf_debug to determine if Twig should automatically reload and cache the templates.

settings.yml

An sf_twig_extensions setting has been added to settings.yml that holds an array of Twig_Extension classes. sfTwigView takes all those names and tries to initiate them into Twig_Environment::addExtension(). If it cannot do that, it will throw an InvalidArgumentException.

Jump to Line
Something went wrong with that request. Please try again.