huitiemesens/sonata-admin-generator-bundle

A tool to auto generate basic Sonata admin class

dev-master 2015-12-03 14:57 UTC

This package is not auto-updated.

Last update: 2024-05-11 12:29:15 UTC


README

A automatic Sonata Admin generator

It provide you some command lines to generator admin class for your entities ...

Installation

Sonata admin generator requires PHP 5.3, and should be installed using composer. The general composer instructions can be found on the [composer website](http://getcomposer.org/doc/00-intro.md composer website).

After that, just declare the bundle as follows into you composer.json :

"require" : {
    "huitiemesens/sonata-admin-generator-bundle" : "dev-master"
}

Then, run composer.phar update and you should be good.

Finally add the following code to your AppKernel.php

new huitiemesens\sonataAdminGeneratorBundle\huitiemesensSonataAdminGeneratorBundle(),

Usage

Will generate every entities inside a defined bundle

app/console admin:generate AppBundle

Then a prompt will ask to confirm each of entities found to be generated.