Class Twig_Util_DeprecationCollector

InheritanceTwig_Util_DeprecationCollector

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Twig_Util_DeprecationCollector
collect() Returns deprecations for passed templates. Twig_Util_DeprecationCollector
collectDir() Returns deprecations for templates contained in a directory. Twig_Util_DeprecationCollector
errorHandler() Twig_Util_DeprecationCollector

Method Details

__construct() public method

public void __construct ( Twig_Environment $twig )
$twig
collect() public method

Returns deprecations for passed templates.

public \array() collect ( Iterator $iterator )
$iterator Iterator

An iterator of templates (where keys are template names and values the contents of the template)

return \array()

An array of deprecations

collectDir() public method

Returns deprecations for templates contained in a directory.

public \array() collectDir ( $dir, $ext '.twig' )
$dir string

A directory where templates are stored

$ext string

Limit the loaded templates by extension

return \array()

An array of deprecations

errorHandler() public method

public void errorHandler ( $type, $msg )
$type
$msg