protected function getGenerator()
 {
     $generator = new WidgetGenerator($this->filesystem);
     $skeletonDirs = array(__DIR__ . '/../../../../vendor/sensio/generator-bundle/Sensio/Bundle/GeneratorBundle/Resources/skeleton', __DIR__ . '/../../Resources/skeleton');
     $generator->setSkeletonDirs($skeletonDirs);
     $generator->setTemplating(new \Twig_Environment(new \Twig_Loader_Filesystem($skeletonDirs), array('debug' => true, 'cache' => false, 'strict_variables' => true, 'autoescape' => false)));
     return $generator;
 }
 /**
  * Instanciate a new WidgetGenerator.
  *
  * @return $generator
  */
 protected function createWidgetGenerator()
 {
     $generator = new WidgetGenerator($this->getContainer()->get('filesystem'));
     $generator->setTemplating($this->getContainer()->get('twig'));
     return $generator;
 }