gesof / maker-bundle
Extension of SymfonyMakerBundle
Installs: 296
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.2
- symfony/maker-bundle: ^1.25
This package is auto-updated.
Last update: 2025-04-11 15:50:26 UTC
README
This bundle is a code generation tool for Symfony 5 that extends the capabilities of symfony/maker-bundle, by adding compatibility with bundle oriented projects (Symfony versions ^2.x | ^3.x)
Generate bundle
$ php bin/console gesof:make:bundle
Generate doctrine entity CRUD
Use interactive mode
$ php bin/console gesof:make:crud
or use predefined arguments/options
$ php bin/console gesof:make:crud Acme\\DemoBundle\\Entity\\Company --roles=ROLE_USER --format=yaml
Arguments:
entity-class
Doctrine entity class to generate CRUD for.
Options
--roles
Roles to secure the routes with.
... --roles=ROLE_USER --roles=ROLE_ADMIN
Multiple roles are accepted.
--format
Routing format: yaml or annotation
This tools uses a predefined set of templates to generate the target files (controllers, forms etc).
If you wish to override the base templates, you need to copy the skeleton directory from vendors/gesof/maker-bundle/Resources/skeleton
and specify the new path as below:
# config/packages/gesof_maker.yaml
gesof_maker:
skeleton_dir: '%kernel.project_dir%/src/Acme/DemoBundle/Resources/skeleton'