packagist symfony/maker-bundle v1.61.0
Out with the bugs - In with the features...

latest releases: dev-main, dev-dependabot/composer/_docs_build/twig/twig-3.14.0
20 days ago

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 symfony/recipes#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

  • #1583 [make:crud] Remove / from from index action URL - @seb-jean
  • #1579 [make:listener] Match event name against active events class/id - @maelanleborgne
  • #1571 [make:twig-component] Improve make:twig-component by reading the configuration file - @shadowc
  • #1549 [make:registration-form] improve generated types for phpstan - @seb-jean
  • #1548 [make:reset-password] improve generated typehints for phpstan - @seb-jean
  • #1539 [make:crud|voter] generate classes with final keyword - @jrushlow

Bug

  • #1584 [make:entity] fix multiple and nullable enums - @Fan2Shrek
  • #1581 [make:reset-password] fix generated test name - @mvhirsch
  • #1573 [make:twig-component] Fix config file in error messages - @smnandre
  • #1550 [make:user] fix getPassword() return type in certain instance with PasswordAuthenticatedUserInterface - @seb-jean

New Contributors

Full Changelog: v1.60.0...v1.61.0

Don't miss a new maker-bundle release

NewReleases is sending notifications on new releases.