wame / generator-bundle
Generator for your symfony entities and crud
Installs: 310
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1
- symfony/console: ~3.0
- symfony/framework-bundle: ~3.0
- symfony/process: ~3.0
- symfony/yaml: ~3.0
- twig/twig: ^1.28.2|^2.0
Requires (Dev)
- doctrine/doctrine-bundle: ^1.6
- doctrine/orm: ~2.4
- fresh/doctrine-enum-bundle: ^5.0
- stof/doctrine-extensions-bundle: ^1.2
- symfony/doctrine-bridge: ~3.0
- symfony/filesystem: ~3.0
- symfony/phpunit-bridge: ^3.3
Suggests
- sg/datatablesbundle: ^1.0
This package is auto-updated.
Last update: 2024-11-05 06:10:01 UTC
README
This bundle is a heaviliy altered version of the SensioGeneratorBundle. It specifically has changes and extra features regarding entity and CRUD generations.
Documentation
- Introduction
- Getting started
- Configuration options
- Entity Generation
- CRUD Generation
- Enum Generation
- Form Generation
- Voter Generation
- Datatable Generation
- Overriding twig files
- Extending this bundle
TODO's
- Usage of the 'Resources/translations/roles.(en|nl).yml.twig'
- Configuration:
- There are configuration settings for using different trait-classes, but the generator does not take these settings into account. This should be implemented or the settings should be removed.
- A setting for using datatables by default exists, but the generator currently ignores this setting. This is still to be implemented.
- More settings/defaults:
we may want to set specific traits to be used or not by default. For instance, some application may never use datatables, so that option should be possible to disable for those applications.
- Tests:
- lots of tests still need to be added, like interactive tests and testing expected failures.
- Doctrine PSR-4 bug:
The getBasePathForClass method in DisconnectedMetadataFactory checks entities by their namespace as if PSR-0 is used. Without this GeneratorBundle being in directory 'wame', the RuntimeException will be thrown.