MyGit

v1.61.0

symfony/maker-bundle

版本发布时间: 2024-08-30 06:50:41

symfony/maker-bundle最新发布版本:v1.61.0(2024-08-30 06:50:41)

Howdy Makers!

Aside from squashing a few bugs mentioned below, this releases adds a few improvements such as the ability to generate CRUD without needing to have a trailing / in the index path, reading twig_component.yaml to determine the appropriate namespace (directory structure) when creating Twig Components, matching event names to event classes/id's with make:listener, and improving PHP types with make:registration-form & make:reset-password.

We're also starting to roll out a config based final classes system with all of our make:* commands. In essence, you'll be able to set config values to determine if generated classes should be made final. This release adds the ability to do so with make:voter & make:crud - other makers will soon follow.

# config/packages/maker.yaml
when@dev:
    maker:
        root_namespace: 'App'
        generate_final_classes: true
        generate_final_entities: false

(See https://github.com/symfony/recipes/pull/1315 for the flex recipe)

By default, MakerBundle will generate all non-entity classes with the final PHP keyword. Changing generate_final_classes to false will disable this feature. If you're app has the need to have final entities, setting generate_final_entities to true will allow make:entity to add the final keyword to new entities. For classes & entities, we're using an all or nothing approach.

Enjoy!

v1.61.0

August 29th, 2024

Bug

New Contributors

Full Changelog: https://github.com/symfony/maker-bundle/compare/v1.60.0...v1.61.0

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-08-30发行的版本