Symfony2 API
Class

Symfony\Bundle\TwigBundle\DependencyInjection\TwigExtension

class TwigExtension extends Extension

TwigExtension.

Methods

array getClassesToCompile()

Gets the classes to cache.

from Extension
addClassesToCompile(array $classes)

Adds classes to the class cache.

from Extension
load(array $configs, ContainerBuilder $container)

Responds to the twig configuration parameter.

string getXsdValidationBasePath()

Returns the base path for the XSD files.

getNamespace()

Details

in Extension at line 30
public array getClassesToCompile()

Gets the classes to cache.

Return Value

array An array of classes

in Extension at line 40
public addClassesToCompile(array $classes)

Adds classes to the class cache.

Parameters

array $classes An array of classes

at line 34
public load(array $configs, ContainerBuilder $container)

Responds to the twig configuration parameter.

Parameters

array $configs
ContainerBuilder $container

at line 147
public string getXsdValidationBasePath()

Returns the base path for the XSD files.

Return Value

string The XSD base path

at line 152
public getNamespace()