public function setTwigGenerator(TwigGenerator $twigGenerator)
    {
        $this->twigGenerator = $twigGenerator;
        $this->twigGenerator->setTemplateDirs(array(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'Templates'));
        $this->twigGenerator->setMustOverwriteIfExists(true);
    }
public function setTwigGenerator(TwigGenerator $twigGenerator)
    {
        $this->twigGenerator = $twigGenerator;
        $this->twigGenerator->setTemplateDirs(array(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'Templates'));
        $this->twigGenerator->setMustOverwriteIfExists(true);
    }
public function setTwigGenerator ( TwigGenerator $ twigGenerator ) { $ this -> twigGenerator = $ twigGenerator ; $ this -> twigGenerator -> setTemplateDirs ( array ( __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Templates' ) ) ; $ this -> twigGenerator -> setMustOverwriteIfExists ( true ) ; }
Define the twig generator instance

@param TwigGenerator $twigGenerator
Define the twig generator instance