34 if (in_array(substr(
$name, -1), array(
'/',
'\\'))) {
38 if (
'.twig' === substr(
$name, -5)) {
42 $extension = pathinfo(
$name, PATHINFO_EXTENSION);
60class_alias(
'Twig_FileExtensionEscapingStrategy',
'Twig\FileExtensionEscapingStrategy',
false);
An exception for terminatinating execution or to throw for unit testing.
Default autoescaping strategy based on file names.
static guess($name)
Guesses the best autoescaping strategy based on the file name.