Symfony\Bundle\TwigBundle\Debug\TimedTwigEngine::__construct
Constructor.
Signature
public function __construct(Twig_Environment
$environment,
[TemplateNameParserInterface
$parser = null,
[FileLocatorInterface
$locator = null,
[Stopwatch
$stopwatch = null,
[GlobalVariables
$globals = null]]]] )
Parameters
$environment
— \Twig_Environment- A \Twig_Environment instance
$parser
— Symfony\Component\Templating\TemplateNameParserInterface- A TemplateNameParserInterface instance
$locator
— Symfony\Component\Config\FileLocatorInterface- A FileLocatorInterface instance
$stopwatch
— Symfony\Component\Stopwatch\Stopwatch- A Stopwatch instance
$globals
— Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables- A GlobalVariables instance