Twig_Util_DeprecationCollector

Extends\Twig\Util\DeprecationCollector

package

Default

Methods

__construct

__construct(\Twig\Environment $twig)
inherited

Arguments

$twig

\Twig\Environment

Returns deprecations for passed templates.

collect(\Traversable $iterator): array
inherited

Arguments

$iterator

\Traversable

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

Response

array

An array of deprecations

Returns deprecations for templates contained in a directory.

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

Arguments

$dir

string

A directory where templates are stored

$ext

string

Limit the loaded templates by extension

Response

array

An array of deprecations

Properties

twig

twig :
inherited

Type(s)

deprecations

deprecations :
inherited

Type(s)