Skip to content

Commit 2f1a757

Browse files
authored
Added comments
1 parent a22ea13 commit 2f1a757

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Renderers/TwigRenderer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function __construct(array $templates_dirs, array $options = array())
2727
{
2828
$loaders = new ChainLoader();
2929

30+
/* To maintain compatibility with non-PSR4 versions of Twig */
3031
if (class_exists('Twig_Loader_Filesystem')) {
3132
$class = 'Twig_Loader_Filesystem';
3233
$envClass = 'Twig_Environment';
@@ -45,6 +46,7 @@ public function __construct(array $templates_dirs, array $options = array())
4546

4647
public function setFilters()
4748
{
49+
/* To maintain compatibility with non-PSR4 versions of Twig */
4850
if (class_exists('Twig_SimpleFilter')) {
4951
$class = 'Twig_SimpleFilter';
5052
} else {

0 commit comments

Comments
 (0)