alexskoromnui/symfony-entity-serve-classes-generator

1.0 2021-04-15 17:32 UTC

This package is not auto-updated.

Last update: 2024-04-26 06:50:18 UTC


README

Package for generating serve classes (Repository, DTO, Builder, Service) for entity.

Warning

This package only works with modular architecture.

for example entity namespace should be like this App\Modules\Module Name\Entity\Entity Name

Install package

composer require alexskoromnui/symfony-entity-serve-classes-generator --dev

Then you should register bundle inside bundles.php

    Skoromnui\Bundle\EntityServeClassGeneratorBundle\EntityServeClassesGeneratorBundle::class => ['dev' => true]

Commands

  • bin/console s_generate:all - command for generating (DTO, Repository, Builder, Service, Controller) based on Entity

  • bin/console s_generate:dto - command for generating DTO and DTO Interface based on Entity

  • bin/console s_generate:repository - command for generating Repository and Repository Interface based on Entity
  • bin/console s_generate:builder - command for generating Builder based on Entity
  • bin/console s_generate:service - command for generating Service based on Entity
  • bin/console s_generate:controller - command for generating Controller based on Entity