protected function getFormGenerator() { if (null === $this->formGenerator) { $this->formGenerator = new DoctrineFormGenerator($this->getContainer()->get('filesystem'), __DIR__.'/../Resources/skeleton/form');; } return $this->formGenerator; }