omines / datatables-bundle

DataTables bundle for Symfony
https://omines.github.io/datatables-bundle/
MIT License
252 stars 113 forks source link

Datatable generation command for creating datatables automatically #185

Closed adsazad closed 3 years ago

adsazad commented 3 years ago

Symfony command to create datatables automaticaly to reduce time consumption in creating datatable. this command will generate skeleton for datatable as given in this datatable's documentation. It simply works by running command: php bin/console datatables:generate which is followed by questions like the Controller where you want to put action and name of twig and the route to be generated this will automatically generate route, action, and twig and your datatable will be ready to go in seconds. the code is completely tested.

maxhelias commented 3 years ago

Why not create a maker bundle commande to create a new service that implements DataTableTypeInterface ?

adsazad commented 3 years ago

i don't know. what i had on my mind i made it.

curry684 commented 3 years ago

I agree this should not be core functionality of the bundle, developer-only functionality shouldn't be part of the deployable code. Suggestion from @maxhelias sounds like a much better idea.