568 Commits

Author SHA1 Message Date
Ayyoub AFW-ALLAH
8aec4857cb [Make:Voter] Add Missing Vote param in voteOnAttribute() 2026-03-18 12:21:24 +01:00
tcoch
ce97fb4650 Update Yaml indentation in tests after symfony/symfony#62967 2026-03-17 13:27:27 +01:00
Jérôme Tamarelle
370a91031f Fix CS 2026-03-16 16:22:57 +01:00
Jérôme Tamarelle
56c662c373 Inject the directory path and namespace in the EnumHelper instead of the FileManager
Make the class internal and remove the service definition
2026-03-16 16:12:40 +01:00
Jérôme Tamarelle
80264adc03 Replace functional test for EnumHelper with a unit test
The MakerBundle is not registered in test environment in the tmp project
2026-03-16 16:10:03 +01:00
tcoch
87d4d9327a First try to create unit tests 2026-03-16 06:20:30 -04:00
tcoch
2033b9f967 Fix Fabbot PHP code style 2026-03-05 05:54:49 -05:00
tcoch
aaa64b3065 Add test failing if enum does not exists 2026-03-05 05:50:51 -05:00
Jérôme Tamarelle
db9b44c4f4 PHPUnit 11 compatibility 2026-02-12 13:13:20 +01:00
Jérôme Tamarelle
cfe91c4472 Validate root_namespace configuration 2026-02-07 15:46:30 +01:00
Jérôme Tamarelle
686d8ac8a6 Fix CS: Use static anonymous functions 2026-02-04 12:43:05 +01:00
tcoch
e1e67199f6 [make:crud] Use CamelCase for getter and setter 2026-01-13 11:50:18 +01:00
Nicolas Grekas
0ad8e79aee Leverage symfony-tools/fabbot 2026-01-09 21:14:47 +01:00
Jérôme Tamarelle
bfb62bb2e5 feature #1772 Upgrade bundled php-cs-fixer.phar to 3.92.5 (GromNaN)
This PR was squashed before being merged into the 1.x branch.

Discussion
----------

Upgrade bundled `php-cs-fixer.phar` to 3.92.5

Use `PHP_CS_FIXER_IGNORE_ENV` in tests to support PHP 8.5.

I'm adding the env var the same way it's added in 08192e197e/src/Util/TemplateLinter.php (L63)
This test don't need to run on Windows.

Commits
-------

96b368b7 Upgrade bundled `php-cs-fixer.phar` to 3.92.5
2026-01-09 21:10:55 +01:00
Jérôme Tamarelle
96b368b7bf Upgrade bundled php-cs-fixer.phar to 3.92.5 2026-01-09 21:10:50 +01:00
Jérôme Tamarelle
c6aae8b519 feature #1721 [make:migration] Add --nowdoc option (simonsolutions)
This PR was squashed before being merged into the 1.x branch.

Discussion
----------

[make:migration] Add `--nowdoc` option

As doctrine migration has the new option "nowdoc"
https://github.com/doctrine/migrations/pull/1504
added the parameter for make:migration command to pass that option for generating

Commits
-------

ff15d3fa [make:migration] Add `--nowdoc` option
2026-01-09 21:05:26 +01:00
Simon Solutions
ff15d3faa6 [make:migration] Add --nowdoc option 2026-01-09 21:05:22 +01:00
Kasper Hansen
f10b589773 Remove obsolete check for 'version' in docker compose file 2026-01-09 20:46:32 +01:00
Jérôme Tamarelle
bdbb0f0209 Upgrade to PHPStan v2 2026-01-09 15:45:17 +01:00
Jérôme Tamarelle
7f693b6fc4 minor #1765 Re-enable api tests (GromNaN)
This PR was merged into the 1.x branch.

Discussion
----------

Re-enable api tests

Revert change from https://github.com/symfony/maker-bundle/pull/1598 as https://github.com/symfony/recipes/pull/1339 was merged.

Commits
-------

691b16b Re-enable api tests
2026-01-09 14:57:08 +01:00
Jérôme Tamarelle
0472dce71c Fix configuration for DoctrineBundle v3
Options enable_native_lazy_objects and enable_native_lazy_objects are removed from DoctrineBundle v3

DoctrineBundle v2.10+ is required
2026-01-08 14:41:49 +01:00
Jérôme Tamarelle
691b16ba5a Re-enable api tests
https://github.com/symfony/recipes/pull/1339
2026-01-07 18:16:07 +01:00
Javier Eguiluz
eba30452d2 minor #1735 Use logout_path() in login form templates (PierreCapel)
This PR was merged into the 1.x branch.

Discussion
----------

Use logout_path() in login form templates

Commits
-------

8558674e feat(login form): use logout_path()
2025-12-02 08:14:37 +01:00
Hugo Alliaume
85e7d2be08 Add support for Symfony 8 2025-11-24 16:41:43 +01:00
Christian Flothmann
4ba90e144a do not implement __serialize() for users without passwords 2025-11-19 09:46:04 +01:00
Pierre-Emmanuel CAPEL
8558674ee6 feat(login form): use logout_path() 2025-10-06 16:48:40 +02:00
Kevin Bond
33591e684b Revert "[make:form] suffix with "Form" instead of "Type""
This reverts commit 6456718e87.
2025-06-23 11:56:19 -04:00
Kevin Bond
81eb8d9df6 feature #1703 [make:user] Hash passwords using crc32c and deprecate eraseCredentials() (nicolas-grekas)
This PR was merged into the 1.x branch.

Discussion
----------

[make:user] Hash passwords using crc32c and deprecate eraseCredentials()

Fix #1700
Replace ##1701

Commits
-------

75886fbd [make:user] Hash passwords using crc32c and deprecate eraseCredentials()
2025-05-13 09:41:16 -04:00
Nicolas Grekas
75886fbd3e [make:user] Hash passwords using crc32c and deprecate eraseCredentials() 2025-05-13 14:52:54 +02:00
Kevin Bond
d436e002c9 Remove errant dump() from test 2025-04-28 10:21:53 -04:00
Kevin Bond
2ba3edaf1f [make:message] use AsMessage for routing if available 2025-04-25 15:59:57 -04:00
pierrebaudoin
f12982b299 fix: default validator param message 2025-04-25 14:37:41 -04:00
Kevin Bond
f0dbf23d21 feature #1687 [make:listener] use FQCN for kernel events, fix adding unnecessary #[AsEventListener] arg (kbond)
This PR was squashed before being merged into the 1.x branch.

Discussion
----------

[make:listener] use FQCN for kernel events, fix adding unnecessary `#[AsEventListener]` arg

- adding the `event` argument to `#[AsEventListener]` isn't required when it's a FQCN
- use FQCN for kernel events - I believe this is the best practice

Commits
-------

cd1d9083 [make:listener] use FQCN for kernel events, fix adding unnecessary `#[AsEventListener]` arg
2025-04-25 14:35:31 -04:00
Kevin Bond
cd1d90832e [make:listener] use FQCN for kernel events, fix adding unnecessary #[AsEventListener] arg 2025-04-25 14:35:27 -04:00
Kevin Bond
36c57d63db minor #1633 [minor] Fix "twig" case (-> "Twig") in make:twig-component & various places (smnandre)
This PR was squashed before being merged into the 1.x branch.

Discussion
----------

[minor] Fix "twig" case (-> "Twig") in make:twig-component & various places

Same thing for
* `HTML` in component template
* `Live component` in maker help

Commits
-------

88221cf5 [minor] Fix "twig" case (-> "Twig") in make:twig-component & various places
2025-04-25 14:19:51 -04:00
Simon André
88221cf549 [minor] Fix "twig" case (-> "Twig") in make:twig-component & various places 2025-04-25 14:19:46 -04:00
Kevin Bond
61e7b36f39 bug #1660 [make:entity] Use stricter DateTime type instead of DateTimeInterface for mutable datetime fields (rosier)
This PR was merged into the 1.x branch.

Discussion
----------

[make:entity] Use stricter DateTime type instead of DateTimeInterface for mutable datetime fields

The current DateTimeInterface type hint suggest that you can put a DateTimeImmutable in a mutable datetime field, but that is no longer the case.

It results in the following error:
```
Could not convert PHP value of type DateTimeImmutable to type Doctrine\DBAL\Types\DateTimeType.
Expected one of the following types: null, DateTime.
```

Follows:
- https://github.com/doctrine/dbal/pull/6017
- https://github.com/doctrine/dbal/pull/6161

Commits
-------

e80aa170 Use stricter DateTime type instead of DateTimeInterface for mutable datetime fields
2025-04-25 14:13:19 -04:00
Nerea Enrique
28da5e48e4 fix: keep the return from the interface instead 2025-04-25 13:38:45 -04:00
Jan Rosier
e80aa170e0 Use stricter DateTime type instead of DateTimeInterface for mutable datetime fields 2025-04-25 13:35:36 -04:00
Kevin Bond
6456718e87 [make:form] suffix with "Form" instead of "Type" 2025-04-25 12:14:59 -04:00
Kevin Bond
7c4f6bb6bc [make:schedule] deprecate in favor of recipe 2025-04-25 10:59:13 -04:00
Kevin Bond
7b7f06990c [make:entity] doctine/persistence v4 support, drop xml entity config support 2025-04-25 10:18:31 -04:00
Kevin Bond
beb8b63c98 feature #1592 [make:security:form-login] Tweak login forms to enable double-submit CSRF protection (nicolas-grekas)
This PR was merged into the 1.x-dev branch.

Discussion
----------

[make:security:form-login] Tweak login forms to enable double-submit CSRF protection

Will be leveraged by https://github.com/symfony/symfony/pull/58095
Does no harm being enabled regardless of the Symfony version in use.

---
Waiting on:
- [x] https://github.com/symfony/symfony/pull/58095

Commits
-------

b13f0fb6 Generate data-controller="csrf-protection" on CSRF fields
2025-03-26 08:17:59 -04:00
Simon André
881ecf080d [make:stimulus-controller] Add classes support, generate usage code, fix doc, add tests (#1631)
* Replace StimulusBridge with StimulusBundle in docblock

* Add methods initialize, connect and disconnect with code comment

* Add line break before "stimulusFetch: lazy" to emphasis line and help UX parsers

* Update tests for lazy doc changes

* Update tests for empty line before lazy

* Update tests with base methods

* Use 'JavaScript' as default extension

* Add `--typescript` / `--ts` (non interactive) option (default false)

* Update Maker documentation link displayed after code generation

* Define classes interactively

* Generate an example usage

* phpstan happiness
2025-01-24 03:43:51 -05:00
Kevin Bond
41744d7723 Revert "feature #1575 [make:*] Use a PHP-CS-Fixer shim rather than an external PHAR"
This reverts commit 4735ff12ce.
2025-01-14 19:01:50 -05:00
Christopher Georg
6f59bff7ad fix: PHP 8.4 deprecations 2025-01-14 17:13:31 +01:00
Nicolas Grekas
b13f0fb68c Generate data-controller="csrf-protection" on CSRF fields 2025-01-06 15:35:32 +01:00
octoseth
9fa9221145 Keep the 'is' prefix on a boolean property when making the setter 2024-12-07 12:06:06 +01:00
Jesse Rushlow
de15602f31 feature #1603 [make:controller] add ability to create controller with tests 2024-09-26 23:31:17 -04:00
Jesse Rushlow
3280a5ded0 feature #1588 [make:controller] generate final controller class
* [make:controller] generate final controller class

* add generated file assertions

* add ability to generate a twig template based off of an absolute class name

* generate the controller from the class data method

* cleanup makeController and generator

* allow creating class data objects with absolute namespaces
2024-09-26 19:15:35 -04:00