Skip to content

Releases: symfony/maker-bundle

Make Webhooks & Schedules

06 Apr 15:08
c4f8d2c

Choose a tag to compare

Howdy Makers,

We've added not one, but two, brand spanking new makers to the bundle! make:webhook handles a bit of the grunt work needed to get your app responding to external events using Symfony's Webhook Component. But what about generating that report every Monday at 3am? Don't worry, MakerBundle can handle that too, turn off your alarm clock and type make:schedule to generate a new schedule for Symfony's Scheduler Component .

Both of these components are fairly new - we look forward to hearing your feedback on how we can make either of these maker's better. In the meantime, checkout the docs below for each component.

In other news, make:entity can now handle is'ers and has'ers a bit better. If your entity has a property, say $isPizzaGood, maker will generate public function isPizzaGood() instead of isIsPizzaGood(). And, if your entity happens to have a collection of pizza's - it adds the appropriate DocBlock annotation to the property to aid in static analysis & code completion. E.g.

/** @var Collection<int, Pizza> */
#[ORM\MandToOne(....)
private Collection $pizza;

Enjoy!

v1.58.0

April 6th, 2024

Feature

  • #1502 [make:*] additional type improvements - @jrushlow
  • #1499 [make:*] add docBlock return types for non-internal makers - @jrushlow
  • #1493 [make:entity] managing keyword prefixes (is, has) for boolean properties getters - @ClemRiviere
  • #1491 [make:webhook] Add new command for Symfony's Webhook Component - @maelanleborgne
  • #1487 [make:schedule] a new command for creating recurring Symfony Schedules - @jrushlow
  • #1219 [make:entity] Add PHPDoc var type for Collections - @b1rdex

Bug

  • #1476 [ysm] handle linebreak followed by an immediate root-level comment - @jrushlow

New Contributors

Diff: v1.57.0...v1.58.0

getPayload() with Uid's, better messages, & VerifyEmail improvements

22 Mar 12:00
2c90181

Choose a tag to compare

Howdy Makers,

Instead of calling $request->request->get(), we're using the new getPayload() method in controller templates, you can generate entities with UUID's || ULID's instead of an int as the id, and we've fixed up a few exception messages to make things a bit more clear. SymfonyCast's VerifyEmailBundle released v1.17.0 recently that introduces a few deprecation's & make:registration was updated to take handle those new features.

Check out the PR's below for more details on the new features. Anywho, back PR Squashing...

v1.57.0

March 22nd, 2024

Feature

  • #1488 [make:*] allow the option to use ULID's for entity id's - @jrushlow
  • #1484 [make:auth] use getString() instead of get() - @seb-jean
  • #1477 [make:message] Modernize Messenger\Message class, use PHP8 features - @lyrixx
  • #1475 [make:user] better exception msg for non-attribute mapping entities - @jrushlow
  • #1474 [make:entity] Prevent entity name from having an accent - @Fan2Shrek
  • #1473 [make:*] use getPayload() instead of accessing request on Request objects - @Fan2Shrek
  • #1464 [make:registration-form] use validateEmailConfirmationFromRequest() when verifying emails - @jrushlow
  • #1329 Add support for generating UUID id fields in entities - @Coffee2CodeNL

Bug

  • #1490 [make:entity] Fix a small typo in a make:entity error message - @maelanleborgne
  • #1486 [make:entity] Fix exception message if mercure bundle not found with --broadcast - @cavasinf

Diff: v1.56.0...v1.57.0

Enjoy!

Prettier Migrations with a plethora of additions

04 Mar 13:37
bbb7949

Choose a tag to compare

Howdy Makers,

We've added a host of new features focusing around bringing MakerBundle up to snuff with it's peers. In make:user, we're shifting towards using the preferred UniqueConstraint instead of Column(unique: true), make:reset-password ensures the password is not compromised and packs some strength, and you can have your make:migrations nice and tidy by passing --formatted. Check out the changelog for all of the features and fixes that our community has contributed to this release!

v1.56.0

March 4th, 2024

Feature

  • #1465 [make:twig-component] default to "no" when asking if is live component - @jrushlow
  • #1463 [make:serializer:normalizer] stop using CacheableSupportsMethodInterface - @jrushlow
  • #1460 [make:user] handle ORM\Column.unique deprecation - use ORM\UniqueConstrain - @maelanleborgne
  • #1413 [DoctrineHelper] handle property type for custom doctrine type - @IndraGunawan
  • #1405 [make:reset-password] increase password strength & check for comprimised password - @Spomky
  • #1402 [make:entity] remove PasswordUpgraderInterface annotation in phpdoc - @AurelienPillevesse
  • #1393 [make:*] add single_text widget for all date types - @tacman
  • #1345 [make:migration] Format the generated migration sql by passing --formatted to the command - @StevenRenaux
  • #1243 [make:registration] drop guard authentication support - @jrushlow
  • #516 [make:migration] add ability to specify a configuration file - @LeJeanbono

Bug

Diff: v1.55.1...v1.56.0

Enjoy!

Hot Fix for make:entity

21 Feb 13:43
11a9d31

Choose a tag to compare

Howdy Makers,

A tiny release that moves a conditional in make:entity to it's proper place. Otherwise, an exception was thrown to install Mercure before asking if you wanted to broadcast entity updates. Thanks to @fabgg for bringing this to our attention.

v1.55.1

February 21st, 2024

Bug

  • #1458 - [make:entity] fix require mercure before asking to broadcast entity updates - @jrushlow

Diff: v1.55.0...v1.55.1

Enjoy!

Smashed bugs with a splash of DX

21 Feb 03:38
d344744

Choose a tag to compare

Howdy Makers!

This release squashes a few long standing bugs that were floating around out there. Notably, make:entity uses ux-turbo instead of the archived ux-turbo-mercure package. The "types wizard" in make:entity will only show the doctrine types that are available instead of a static list of possibly unavailable types. For the features, we've upgraded the bundled php-cs-fixer to v3.49.0, added a few docblocks to help with static analysis tools, and I supposed it was about time we stopped calling createView() on form objects in make:registration-form && make:reset-password

Big thanks to the community for creating issues and submitting PR's!

v1.55.0

February 20th, 2024

Feature

  • #1455 - [make:registration-form] Removal of the createView() method, as it is no longer required to render the form - @mdoutreluingne
  • #1452 - [make:entity] remove PhpCompatUtil constructor argument - @jrushlow
  • #1444 - [make:command] deprecate passing PhpCompatUtil to the constructor - @jrushlow
  • #1443 - [make:controller] deprecate passing PhpCompatUtil to the constructor - @jrushlow
  • #1429 - [make:*] upgrade bundled PHP-CS-Fixer to v3.49.0 - @jrushlow
  • #1411 - [make:user] Add phpdocs in class generated by make:user for PHPStan - @maelanleborgne
  • #1273 - [make:serializer:normalizer] Inject a NormalizerInterface instead of an ObjectNormalize - @mtarld

Bug

  • #1449 - [tests] fix broken assignment operator - addExtraDependencies() - @jrushlow
  • #1448 - [make:entity] only show supported types in cli wizard - @jrushlow
  • #1445 - [make:entity] use ux-turbo instead of ux-turbo-mercure - @jrushlow
  • #1422 - Generator verifies if class exists before altering class name - @Antarian
  • #1283 - don't install development files when adding maker-bundle to a project - @dmitryuk

Generated by Git Released

Diff: v1.54.0...v1.55.0

Enjoy!

Support DBAL 4.0 & ORM 3.0, So Long Symfony 6.3, & Bug Smashing...

06 Feb 21:25
a8523cf

Choose a tag to compare

Howdy Makers!

We're saying goodbye to Symfony 6.3 :( But are welcoming in support for doctrine/dbal 4.0 and doctrine/orm 3.0! For the Windows folks out there, we discovered that the bundled php-cs-fixer wasn't working as expected. Naturally, our bug smashing hammer was put to good use and generated PHP files are nice and tidy. Along with a handful of DX improvements, we've bumped the doctrine/orm and doctrine/doctrine-bundle composer requirements to 2.15 & 2.10 respectively.

Speaking of DX, we've completed a bit of housekeeping on the testing front. Windows tests are running on GitHub Actions instead of AppVeyor, and while adding a few development env's to phpunit.xml.dist, we cleaned things up a bit to play nicely with PHPUnit 9.6.

v1.54.0

February 6th, 2024

Feature

  • #1439 - [make:*] improve support for ORM 3.x / DBAL 4.x - @jrushlow
  • #1438 - Remove mentions of undefined Doctrine constants Types::ARRAY and Types::OBJECT - @njutn95
  • #1432 - [make:controller] use promoted parameter - @tacman
  • #1428 - [make:*] use Routing\Attribute* instead of Routing\Annotation* - @jrushlow
  • #1425 - [dx] require >= PHPUnit 9.6, update phpunit schema, deprecate skipOnSymfony7() - @jrushlow
  • #1421 - [make:*] drop Symfony 6.3 support - @jrushlow
  • #1418 - Determine events map dynamically - @HypeMC

Bug

Generated by Git Released

Diff: v1.53.0...v1.54.0

Enjoy!

Add support PHP Parser 5 & for the upcoming Twig v4.0

01 Feb 10:06
8d2f3f9

Choose a tag to compare

Howdy!

We've added support for PHP Parser v5 & to make room for Twig v4, we've dropped support for Twig v2 which reached it's EOL last year. With a few other minor features, we've managed to squash a bug or two along the way...

v1.53.0

February 1st, 2024

Feature

Bug

  • #1419 - [make:controller] remove CodeExtension::getFileLink() call when generating twig templates - @jrushlow
  • #1403 - Doctrine make:fixtures - Remove extra semicolon - @MrYamous
  • #1342 - fix missing blank space in Repository.tpl.php - @OleksiiBulba

Diff: v1.52.0...v1.53.0

Enjoy!

v1.52.0 Symfony 7 Support

29 Nov 14:40

Choose a tag to compare

Hi Makers!

This release contains support for Symfony 7 along with a setup of other features and bug fixes.

Features

Bug Fixes

New Contributors

Full Changelog: v1.51.1...v1.52.0

Happy making!

Fix use statements in make:fixtures

18 Sep 18:18

Choose a tag to compare

Hi Makers!

This release contains one bug fix to make:fixtures. That's it!

  • Fix UseStatementGenerator usage in MakeFixtures.php by @beesofts in #1360

New Contributors

Full Changelog: v1.51.0...v1.51.1

Happy making!

Modern Symfony support + Bug fixes

12 Sep 18:12
v1.51.0

Choose a tag to compare

Hey Makers!

This release modernizes MakerBundle and fixes several deprecated code generations. The important details are:

  • Min PHP version is now 8.1
  • Min Symfony version is now 6.3
  • Annotations support is completely dropped

Feature

New Contributors

Full Changes: v1.50.0...v1.51.0