Generate the CRUD controller.
public generate ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle, string $entity, Doctrine\ORM\Mapping\ClassMetadataInfo $metadata, string $format, string $routePrefix, array $needWriteActions ) | ||
$bundle | Symfony\Component\HttpKernel\Bundle\BundleInterface | A bundle object |
$entity | string | The entity relative class name |
$metadata | Doctrine\ORM\Mapping\ClassMetadataInfo | The entity class metadata |
$format | string | The configuration format (xml, yaml, annotation) |
$routePrefix | string | The route name prefix |
$needWriteActions | array | Wether or not to generate write actions |