Bundle/WidgetBundle/Command/CreateWidgetCommand.php
protected function createWidgetGenerator()
    {
        $generator = new WidgetGenerator($this->getContainer()->get('filesystem'));
        $generator->setTemplating($this->getContainer()->get('twig'));

        return $generator;
    }
protected function createWidgetGenerator()
    {
        $generator = new WidgetGenerator($this->getContainer()->get('filesystem'));
        $generator->setTemplating($this->getContainer()->get('twig'));

        return $generator;
    }
protected function createWidgetGenerator ( ) { $ generator = new WidgetGenerator ( $ this -> getContainer ( ) -> get ( 'filesystem' ) ) ; $ generator -> setTemplating ( $ this -> getContainer ( ) -> get ( 'twig' ) ) ; return $ generator ; }
Instanciate a new WidgetGenerator.

@return $generator
Instanciate a new WidgetGenerator .