Newscoop\PluginGeneratorBundle\Command\GeneratorPluginCommand::getGenerator PHP Method

getGenerator() protected method

protected getGenerator ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle = null )
$bundle Symfony\Component\HttpKernel\Bundle\BundleInterface
    protected function getGenerator(BundleInterface $bundle = null)
    {
        if (null === $this->generator) {
            $this->generator = $this->createGenerator();
            $this->generator->setSkeletonDirs($this->getSkeletonDirs($bundle));
        }
        return $this->generator;
    }