Sensio\Bundle\GeneratorBundle\Command\GenerateBundleCommand::getGenerator PHP Method

getGenerator() protected method

protected getGenerator ( )
    protected function getGenerator()
    {
        if (null === $this->generator) {
            $this->generator = new BundleGenerator($this->getContainer()->get('filesystem'), __DIR__.'/../Resources/skeleton/bundle');
        }

        return $this->generator;
    }