Skip to content

Releases: symfony/maker-bundle

1.65.1

02 Dec 07:18

Choose a tag to compare

What's Changed

[eba3045] Feature: use logout_path() in login form templates (@PierreCapel)
[f33c80e] Bump php-cs-fixer to 3.75 (@shakaran)
[edad857] Bug: removed assertion on status code after redirect (@rensieeee)
[dd7818d] Bug: fixed undefined method issue (@kekstlt)
[efd3532] Bug: updated MigrationDiffFilteredOutput to implement all methods from OutputInterface (Josh McRae)

v1.65.0: Symfony 8

24 Nov 15:48

Choose a tag to compare

What's Changed

[9a0276d] Feature: Add support for Symfony 8 (@Kocal)
[d3e8169] Fix: do not implement __serialize() for users without passwords (@xabbuh)
[6f42db1] Fix: PHP 8.4 deprecation about implicitly-nullable-types (@natewiebe13)
[2696e9e] minor: Do not call Reflection*::setAccessible() (@W0rma)

v1.64.0 : Revert!

04 Jul 11:52
c86da84

Choose a tag to compare

Hey Maker's!

Small release to revert a make:form change. Created types are now suffixed with Type again.

What's Changed

  • Remove errant dump() from test by @kbond in #1695
  • [make:user] Hash passwords using crc32c and deprecate eraseCredentials() by @nicolas-grekas in #1703
  • Fix templates/crud/test/Test.EntityManager.tpl.php by @lyrixx in #1712
  • [make:form] suffix with "Type" instead of "Form" (revert) by @kbond in #1714

Full Changelog: v1.63.0...v1.64.0

v1.63.0 : Modernization

27 Apr 21:26
69478ab

Choose a tag to compare

Hey Maker's!

Long time, no release! This fixes a bunch of bugs and adjust some makers to generate modern code that conform with current best practices.

What's Changed

  • [make:stimulus-controller] Add classes support, generate usage code, fix doc, add tests by @smnandre in #1631
  • [make:twig-component] do not throw an error if config file does not exist by @IndraGunawan in #1640
  • [make:security:form-login] Tweak login forms to enable double-submit CSRF protection by @nicolas-grekas in #1592
  • [make:entity] doctine/persistence v4 support, drop xml entity config support by @kbond in #1677
  • [make:schedule] deprecate in favor of recipe by @kbond in #1684
  • [make:form] suffix with "Form" instead of "Type" by @kbond in #1685
  • [make:user] Missmatch between PHPDoc and the reality on User::getRoles() by @Curryed in #1646
  • [make:entity] Use stricter DateTime type instead of DateTimeInterface for mutable datetime fields by @rosier in #1660
  • [make:listener] use FQCN for kernel events, fix adding unnecessary #[AsEventListener] arg by @kbond in #1687
  • [make:validator] Fix default param key in validator by @PierreBaud in #1674
  • [make:message] use AsMessage for routing if available by @kbond in #1690
  • [doc] Remove Symfony version in introduction by @smnandre in #1634
  • [doc] remove $ so cut-and-paste works by @tacman in #1627
  • [ci] rename branch by @kbond in #1686
  • [ci] Tighten up CI matrix by @kbond in #1683
  • [cs] Fix putting the class-opening bracket on its own line by @nicolas-grekas in #1656
  • [cs] Fix indentation of options_code by @nicolas-grekas in #1657
  • Fix docs branch following the renaming of main to 1.x by @chalasr in #1692
  • Fix "twig" case (-> "Twig") in make:twig-component & various places by @smnandre in #1633
  • Drop CHANGELOG.md by @kbond in #1689
  • Warn if using a maker non-interactively by @kbond in #1688
  • Use parser v5 for consistent Emulative constructor by @weaverryan in #1682

New Contributors

Full Changelog: v1.62.1...v1.63.0

v1.62.1 : Revert PHP-CS-Fixer change

15 Jan 00:27
468ff27

Choose a tag to compare

v1.62.0 contained a change that added php-cs-fixer as a required dependency. This caused a lot of problems downstream. We've reverted this change.

What's Changed

New Contributors

Full Changelog: v1.62.0...v1.62.1

v1.62.0 : Final Controllers, Validators, & PHP-CS-Fixer as a Composer dependency

13 Jan 17:45
0624f13

Choose a tag to compare

What's Changed

  • [make:validator] drop annotation support in constraint by @jrushlow in #1590
  • [docs] ignore composer lock file by @jrushlow in #1593
  • [make:validator] generate final classes by @jrushlow in #1589
  • [ci] temp. skip API Platform tests - recipe conflict by @jrushlow in #1598
  • [make:*] Use a PHP-CS-Fixer shim rather than an external PHAR by @theofidry in #1575
  • [tests] allow dev's to view test process output locally by @jrushlow in #1601
  • [make:controller] add tests for command argument names by @jrushlow in #1602
  • [make:controller] generate final controller class by @jrushlow in #1588
  • [make:controller] add ability to create controller with tests by @jrushlow in #1603
  • [make:controller] maker housekeeping by @jrushlow in #1604
  • [tests] Fix double slashes in tmp PHPUnit path by @symfonyaml in #1596
  • [make:crud] name repository variable with entity prefix when generating tests by @dr-matt-smith in #1597
  • replace Bundle with the new AbstractBundle class by @jrushlow in #1514
  • move templates to root template dir by @jrushlow in #1606
  • Move help files into new directory structure by @jrushlow in #1605
  • minor: run cs-fixer/phpstan with lowest supported PHP by @kbond in #1620
  • [doc] make:entity requires Doctrine by @alexislefebvre in #1611
  • [make:entity] Issue with detected mixed type set to be nullable by @sadikoff in #1619
  • [make-entity]Keep the 'is' prefixes for booleans properties setters by @octoseth in #1621
  • minor: cs fix by @kbond in #1623
  • [doc]remove prepended doubleslash in exceptionmessage by @Butterd in #1622

New Contributors

Full Changelog: v1.61.0...v1.62.0

Out with the bugs - In with the features...

29 Aug 22:50
a3b7f14

Choose a tag to compare

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

Types, Enums, & Bugs...

10 Jun 06:04
c305a02

Choose a tag to compare

Howdy Makers!

We've improved type support in the generated templates to help keep static analysis tools happy, make:entity now supports enums, relaxed ASCII character validation for entity names, & much more.

For MakerBundle Dev's:

  • composer tools:upgrade - Upgrade all of the tools/ dependencies.
  • composer tools:run - Run php-cs-fixer, phpstan, & twigcs against the code base.
  • tools:run:php-cs-fixer - Run just php-cs-fixer. Works with phpstan & twigcs as well.

Enjoy!

v1.60.0

June 10th, 2024

Feature

Bug

  • #1496 [make:entity] confirm to allow non-ascii char's in entity names - @Fan2Shrek
  • #1533 make:security:form-login] fix remember me label - @jrushlow
  • #1535 [make:entity] Update ux-turbo package name to have proper suggestion - @nfragnet
  • #1559 [make:entity] fix indentation in broadcast_twig_template.tpl.php - @seb-jean
  • #1569 Fix generated twig file location - @IndraGunawan

New Contributors

Diff: v1.59.1...v1.60.0

Yes, we know make:auth is deprecated, stop yelling...

06 May 04:00
b87b1b2

Choose a tag to compare

Howdy Makers!

This is a tiny release that fixes the make:auth deprecation logic - the deprecation is only fired when you actually use the make:auth command.

Sorry for the noise! 😉

Enjoy!

v1.59.1

May 5th, 2024

Bug

  • #1532 [make:auth] only fire deprecation when command is called - @eltharin

New Contributors

Diff: v1.59.0...v1.59.1

So long `make:auth`, Hello better security with tests...

27 Apr 21:15
1f02b59

Choose a tag to compare

Howdy Makers,

One of the most notable changes to this release is the deprecation of make:auth. Almost a year ago, we introduced make:security:form-login in v1.49.0 and in this release we're introducing make:security:custom to speed up making custom security authenticators. These two commands fill the gap that make:auth would leave otherwise.

Along with a handful of other features, make:entity no longer adds any of the @method annotations to the entity class and if you're adding a relation to an entity with the same name as the "parent" entity - maker will help differentiate the two classes in the CLI output.

Aside from fixing the code generated by make:serializer:encoder to match the interface signatures it uses, we've also introduced another new feature:

Experimental

We've added the ability to generate tests that should work out of the box for:

  • make:crud
  • make:registration
  • make:reset-password
  • make:security:form-login

To generate these tests, you can either answer y || yes when the maker asks you "Do you want to generate PHPUnit tests?" Or simply pass --with-tests when calling the command. Review the generated test, customize it to your needs, and finally run php bin/phpunit. More tests for more makers are soon to follow!

Enjoy!

v1.59.0

April 27th, 2024

Feature

  • #1523 [make:auth] deprecate command - @jrushlow
  • #1522 [make:security:custom] create a custom authenticator - @jrushlow
  • #1521 [make:reset-password] improve types for static analysis in userland - @jrushlow
  • #1520 [make:entity] Simplify repository PHPDoc removes method annotations - @lyrixx
  • #1519 [make:registration] use "User" type in EmailVerifier::class - @jrushlow
  • #1518 [make:registration] add bool type to User::isVerified - @jrushlow
  • #1515 [make:security:form-login] add ability to generate tests - @jrushlow
  • #1512 [make:webhook] Rephrase comments to be more explicit + minor improvement of generated code - @maelanleborgne
  • #1511 [make:entity] helper message with two classes having the same name under different namespaces - @jeromegxj
  • #1497 [make:*] add ability to generate tests - @jrushlow

Bug

  • #1525 [make:serializer:encoder] fix interface signature mismatch in template - @jrushlow
  • #1516 [common] add missing class header - @jrushlow

New Contributors

Diff: v1.58.0...v1.59.0