Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00%
0 / 1
0.00%
0 / 1
CRAP
0.00%
0 / 7
TwigEnvironmentFactory
0.00%
0 / 1
0.00%
0 / 1
2
0.00%
0 / 7
 factory($templatePath)
0.00%
0 / 1
2
0.00%
0 / 7
<?php
namespace Dewdrop\View;
use Twig_Environment;
use Twig_Loader_Filesystem;
class TwigEnvironmentFactory
{
public static function factory($templatePath)
{
$environment = new Twig_Environment(
new Twig_Loader_Filesystem($templatePath)
);
return $environment;
}
}