Sensio\Bundle\GeneratorBundle\Generator\DoctrineCrudGenerator
Generates a CRUD controller.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class DoctrineCrudGenerator
extends Generator
{
- // members
- protected $filesystem;
- protected $routePrefix;
- protected $routeNamePrefix;
- protected $bundle;
- protected $entity;
- protected $metadata;
- protected $format;
- protected $actions;
- // methods
- public void __construct()
- public void generate()
- private void setFormat()
- protected void generateConfiguration()
- protected void generateControllerClass()
- protected void generateTestClass()
- protected void generateIndexView()
- protected void generateShowView()
- protected void generateNewView()
- protected void generateEditView()
- protected array getRecordActions()
- // Inherited methods from Generator
- public void setSkeletonDirs()
- protected void render()
- protected void renderFile()
Hierarchy
Members
protected
- $actions
- $bundle
- $entity
- $filesystem
- $format
- $metadata
- $routeNamePrefix
- $routePrefix
Methods
private
- setFormat() — Sets the configuration format.
protected
- generateConfiguration() — Generates the routing configuration.
- generateControllerClass() — Generates the controller class only.
- generateEditView() — Generates the edit.html.twig template in the final bundle.
- generateIndexView() — Generates the index.html.twig template in the final bundle.
- generateNewView() — Generates the new.html.twig template in the final bundle.
- generateShowView() — Generates the show.html.twig template in the final bundle.
- generateTestClass() — Generates the functional test class only.
- getRecordActions() — Returns an array of record actions to generate (edit, show).
public
- __construct() — Constructor.
- generate() — Generate the CRUD controller.
Inherited from Sensio\Bundle\GeneratorBundle\Generator\Generator
protected
public
- setSkeletonDirs() — Sets an array of directories to look for templates.