File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
*/
5
5
namespace PHPForm \Renderers ;
6
6
7
- use Twig_Loader_Filesystem ;
8
- use Twig_Environment ;
9
- use Twig_Loader_Chain ;
7
+ use Twig \ Loader \ FilesystemLoader ;
8
+ use Twig \ Environment ;
9
+ use Twig \ Loader \ ChainLoader ;
10
10
11
11
class TwigRenderer implements Renderer
12
12
{
@@ -24,13 +24,13 @@ class TwigRenderer implements Renderer
24
24
*/
25
25
public function __construct (array $ templates_dirs )
26
26
{
27
- $ loaders = new Twig_Loader_Chain ();
27
+ $ loaders = new ChainLoader ();
28
28
29
29
foreach ($ templates_dirs as $ template_dir ) {
30
- $ loaders ->addLoader (new Twig_Loader_Filesystem ($ template_dir ));
30
+ $ loaders ->addLoader (new FilesystemLoader ($ template_dir ));
31
31
}
32
32
33
- $ this ->twig = new Twig_Environment ($ loaders );
33
+ $ this ->twig = new Environment ($ loaders );
34
34
}
35
35
36
36
/**
You can’t perform that action at this time.
0 commit comments