\Twig\UtilDeprecationCollector

Summary

Methods
Properties
Constants
__construct()
collectDir()
collect()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$twig
N/A

Properties

$twig

$twig : 

Type

Methods

__construct()

__construct(\Twig_Environment  $twig) 

Parameters

\Twig_Environment $twig

collectDir()

collectDir(string  $dir, string  $ext = '.twig') : array

Returns deprecations for templates contained in a directory.

Parameters

string $dir

A directory where templates are stored

string $ext

Limit the loaded templates by extension

Returns

array —

An array of deprecations

collect()

collect(\Traversable  $iterator) : array

Returns deprecations for passed templates.

Parameters

\Traversable $iterator

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

Returns

array —

An array of deprecations