src/Kunstmaan/GeneratorBundle/Generator/PageGenerator.php
public function generate(
        BundleInterface $bundle,
        $entity,
        $prefix,
        array $fields,
        $template,
        array $sections,
        array $parentPages
    ) {
        $this->bundle = $bundle;
        $this->entity = $entity;
        $this->prefix = $prefix;
        $this->fields = $fields;
        $this->template = $template;
        $this->sections = $sections;
        $this->parentPages = $parentPages;

        $this->generatePageEntity();
        $this->generatePageFormType();
        $this->generatePageTemplateConfiguration();
        $this->updateParentPages();
    }
public function generate(
        BundleInterface $bundle,
        $entity,
        $prefix,
        array $fields,
        $template,
        array $sections,
        array $parentPages
    ) {
        $this->bundle = $bundle;
        $this->entity = $entity;
        $this->prefix = $prefix;
        $this->fields = $fields;
        $this->template = $template;
        $this->sections = $sections;
        $this->parentPages = $parentPages;

        $this->generatePageEntity();
        $this->generatePageFormType();
        $this->generatePageTemplateConfiguration();
        $this->updateParentPages();
    }
public function generate ( BundleInterface $ bundle , $ entity , $ prefix , array $ fields , $ template , array $ sections , array $ parentPages ) { $ this -> bundle = $ bundle ; $ this -> entity = $ entity ; $ this -> prefix = $ prefix ; $ this -> fields = $ fields ; $ this -> template = $ template ; $ this -> sections = $ sections ; $ this -> parentPages = $ parentPages ; $ this -> generatePageEntity ( ) ; $ this -> generatePageFormType ( ) ; $ this -> generatePageTemplateConfiguration ( ) ; $ this -> updateParentPages ( ) ; }
Generate the page.

@param BundleInterface $bundle      The bundle
@param string          $entity      The entity name
@param string          $prefix      The database prefix
@param array           $fields      The fields
@param string          $template    The page template
@param array           $sections    The page sections
@param array           $parentPages The parent pages

@throws \RuntimeException
Generate the page .