Releases: symfony/maker-bundle
1.65.1
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
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!
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
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
classessupport, 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/persistencev4 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
AsMessagefor 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_codeby @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.mdby @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
- @Curryed made their first contribution in #1646
- @PierreBaud made their first contribution in #1674
- @chalasr made their first contribution in #1692
Full Changelog: v1.62.1...v1.63.0
v1.62.1 : Revert PHP-CS-Fixer change
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
- fix: PHP 8.4 deprecations by @Chris53897 in #1650
- ci: fix github action deprecations by @Chris53897 in #1647
- Custom root namespace make:twig-component by @marcriemer in #1642
- Revert #1575 (Use a PHP-CS-Fixer shim rather than an external PHAR) by @kbond in #1654
New Contributors
- @marcriemer made their first contribution in #1642
Full Changelog: v1.62.0...v1.62.1
v1.62.0 : Final Controllers, Validators, & PHP-CS-Fixer as a Composer dependency
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
- @symfonyaml made their first contribution in #1596
- @alexislefebvre made their first contribution in #1611
- @octoseth made their first contribution in #1621
- @Butterd made their first contribution in #1622
Full Changelog: v1.61.0...v1.62.0
Out with the bugs - In with the features...
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-componentby 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 withPasswordAuthenticatedUserInterface- @seb-jean
New Contributors
- @shadowc made their first contribution in #1571
- @mvhirsch made their first contribution in #1581
- @theofidry made their first contribution in #1576
Full Changelog: v1.60.0...v1.61.0
Types, Enums, & Bugs...
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 thetools/dependencies.composer tools:run- Runphp-cs-fixer,phpstan, &twigcsagainst the code base.tools:run:php-cs-fixer- Run justphp-cs-fixer. Works withphpstan&twigcsas well.
Enjoy!
v1.60.0
June 10th, 2024
Feature
- #1534 [make:entity] add enum support - @loicsapone
- #1543 [dx] make it easier to use tooling for devs - @jrushlow
- #1544 [make:webhook] phpstan types and single quotes - @seb-jean
- #1546 [make:message] phpstan types - @seb-jean
- #1545 1545 [make:crud] use getString() instead of get() for csrf token - @seb-jean
- #1568 [make:schedule] Add transport name for attribute - @NicolasJourdan
- #1574 [make:validator] phpstan types - @seb-jean
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
- @nfragnet made their first contribution in #1535
- @loicsapone made their first contribution in #1534
- @NicolasJourdan made their first contribution in #1568
Diff: v1.59.1...v1.60.0
Yes, we know make:auth is deprecated, stop yelling...
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
New Contributors
Diff: v1.59.0...v1.59.1
So long `make:auth`, Hello better security with tests...
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:crudmake:registrationmake:reset-passwordmake: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
booltype 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
- @jeromegxj made their first contribution in #1511
Diff: v1.58.0...v1.59.0