608 Commits

Author SHA1 Message Date
Javier Eguiluz
b37d5cb932 minor #21620 [Validator] Consistently use Assert\... when referring to assertions (mpdude)
This PR was merged into the 7.3 branch.

Discussion
----------

[Validator] Consistently use `Assert\...` when referring to assertions

I noticed a slight inconsistency in the docs when showing examples of using `Constraint` classes. In some examples, the class is `use`d and shown with the short class name. In other cases, the `Symfony\Component\Validator\Constraints` namespace is used as `Assert`, and references being made as `Assert\NotBlank` and similar.

Personally, I like the `Assert\` prefix, since it triggers the "ah, that's a constraint" wiring in my head, but I don't mind. Generally, I'd prefer consistency, since I noticed that this caused confusion in my team.

Additionally, this PR fixes a few places where we are still showing the use of array-based options instead of named arguments, a change that was made in 7.3.

Commits
-------

4b4161faa Consistently use `Assert\...` when referring to assertions
2026-01-16 08:56:54 +01:00
Javier Eguiluz
ef9ad3a15d Merge branch '6.4' into 7.3
* 6.4:
  Fix some grammar issues
2026-01-08 16:44:18 +01:00
Javier Eguiluz
18ef54507f Fix some grammar issues 2026-01-08 16:36:18 +01:00
Matthias Pigulla
4b4161faa4 Consistently use Assert\... when referring to assertions 2025-12-03 13:40:29 +01:00
Javier Eguiluz
304c77aca6 Merge branch '6.4' into 7.3
* 6.4:
  Fix controller name
2025-11-21 12:55:28 +01:00
inwebo
96c319f424 Fix controller name 2025-11-20 09:10:07 +01:00
Javier Eguiluz
db658ed128 minor #20988 [FrameworkBundle] Enable controller service with #[Route] attribute (javiereguiluz)
This PR was merged into the 7.3 branch.

Discussion
----------

[FrameworkBundle] Enable controller service with `#[Route]` attribute

Fixes #20839.

This change required some updates in the article structure to better explain the three alternative solutions.

Commits
-------

2c33c3623 [FrameworkBundle] Enable controller service with #[Route] attribute
2025-05-27 08:44:37 +02:00
Christian Flothmann
b9f840013d Merge branch '7.2' into 7.3
* 7.2:
  [Form] Remove link to abandoned collection package
  Update AsTaggedItem parameters name in the file value_resolver.rst
2025-05-25 14:02:18 +02:00
Christian Flothmann
6d3a962473 Merge branch '6.4' into 7.2
* 6.4:
  [Form] Remove link to abandoned collection package
  Update AsTaggedItem parameters name in the file value_resolver.rst
2025-05-25 14:02:00 +02:00
Hamza Makraz
a73b542aa4 Update AsTaggedItem parameters name in the file value_resolver.rst 2025-05-25 14:00:43 +02:00
Javier Eguiluz
2c33c3623d [FrameworkBundle] Enable controller service with #[Route] attribute 2025-05-23 09:12:33 +02:00
Christian Flothmann
b36bab2ffb Merge branch '7.2' into 7.3
* 7.2:
  Highligh 'extensions' instead of 'mimeTypes' for File constraint
  Update messenger.rst
  [Doctrine] Remove redundant example with attribute
  Changed text to mention one Product object instead of many
  [WebLink] Hint that prerender is deprecated
2025-05-18 13:10:32 +02:00
Christian Flothmann
fe5cf5eb41 Merge branch '6.4' into 7.2
* 6.4:
  Highligh 'extensions' instead of 'mimeTypes' for File constraint
  Update messenger.rst
  [Doctrine] Remove redundant example with attribute
  Changed text to mention one Product object instead of many
  [WebLink] Hint that prerender is deprecated
2025-05-18 13:08:34 +02:00
Benjamin D.
3474a09b85 Highligh 'extensions' instead of 'mimeTypes' for File constraint
You should always use the extensions option instead of mimeTypes except if you explicitly don't want to check that the extension of the file is consistent with its content (this can be a security issue).

By default, the extensions option also checks the media type of the file.
2025-05-18 13:00:06 +02:00
Javier Eguiluz
27c98998b5 Merge branch '6.4' into 7.2
* 6.4:
  Add documentation to use `AsTaggedItem` for value resolver priority/name
2025-04-30 13:16:48 +02:00
Javier Eguiluz
71c589f60b Merge branch '7.2' into 7.3
* 7.2:
  Add documentation to use `AsTaggedItem` for value resolver priority/name
2025-04-30 13:16:48 +02:00
gertdepagter
a2e253932e Add documentation to use AsTaggedItem for value resolver priority/name 2025-04-30 13:16:28 +02:00
Antoine Lamirault
40a99acbbe Add PHP config support for routing 2025-04-28 12:10:49 +02:00
Javier Eguiluz
e6c8e7cde5 Minor rewords 2025-03-10 10:14:04 +01:00
Loïck Piera
d976d0e8e2 Add documentation for error:dump command 2025-03-01 18:02:22 +01:00
Christian Flothmann
a00dddbdd8 use named-arguments to configure validation constraint options 2025-01-24 12:34:13 +01:00
Maxime Doutreluingne
2079333219 [FrameworkBundle] Remove `--show-arguments option for debug:container` 2025-01-12 11:09:02 +01:00
Oskar Stark
00c3c29507 Merge branch '6.4' into 7.1
* 6.4:
  Fix error_pages.rst setResponse()
2024-11-22 07:57:15 +01:00
Oskar Stark
56dfb877c8 Merge branch '5.4' into 6.4
* 5.4:
  Fix error_pages.rst setResponse()
2024-11-22 07:57:14 +01:00
Florian Merle
8905736ce7 Fix error_pages.rst setResponse() 2024-11-21 17:23:17 +01:00
Oskar Stark
617a2b5dc9 Merge branch '6.4' into 7.1
* 6.4:
  Use type hint
2024-10-10 10:45:08 +02:00
Oskar Stark
6c486141c2 Merge branch '5.4' into 6.4
* 5.4:
  Use type hint
2024-10-10 10:45:06 +02:00
Oskar Stark
e5b9efbfb4 Use type hint 2024-10-10 10:44:22 +02:00
Oskar Stark
e8758ec15e Merge branch '6.4' into 7.1
* 6.4:
  Update controller/value_resolver.rst
  Update value_resolver.rst
2024-09-19 22:39:56 +02:00
Oskar Stark
c2b0315c54 Update controller/value_resolver.rst
Co-authored-by: Christian Flothmann <christian.flothmann@gmail.com>
2024-09-19 22:39:40 +02:00
Simo Heinonen
56ab079c3a Update value_resolver.rst 2024-09-19 22:39:40 +02:00
Javier Eguiluz
85cf02beaa Merge branch '7.0' into 7.1
* 7.0:
  Reword code to use the Autowire attribute
  Fix the parameter configuration in the file upload doc
2024-07-17 17:59:57 +02:00
Javier Eguiluz
cf3a0aa8d0 Merge branch '6.4' into 7.0
* 6.4:
  Reword code to use the Autowire attribute
  Fix the parameter configuration in the file upload doc
2024-07-17 17:59:52 +02:00
Javier Eguiluz
55d376f60d Reword code to use the Autowire attribute 2024-07-17 17:59:22 +02:00
Javier Eguiluz
e5e3c3712f Merge branch '5.4' into 6.4
* 5.4:
  Fix the parameter configuration in the file upload doc
2024-07-17 17:57:19 +02:00
Javier Eguiluz
7d5aebcbeb Minor tweak 2024-07-17 17:56:40 +02:00
Javier Eguiluz
86e415b192 Fix the parameter configuration in the file upload doc 2024-07-15 09:42:03 +02:00
Javier Eguiluz
f3fa2cb276 Merge branch '7.0' into 7.1
* 7.0:
  Upload Files: Removing `getParameter()`
2024-04-26 16:48:51 +02:00
Javier Eguiluz
b97278d0b5 Merge branch '6.4' into 7.0
* 6.4:
  Upload Files: Removing `getParameter()`
2024-04-26 16:48:49 +02:00
Javier Eguiluz
32a4808a63 Merge branch '5.4' into 6.4
* 5.4:
  Upload Files: Removing `getParameter()`
2024-04-26 16:48:44 +02:00
Thomas Landauer
2c16e402a0 Upload Files: Removing getParameter() 2024-04-26 16:47:11 +02:00
Oskar Stark
5887a4bbc1 Merge branch '7.0' into 7.1
* 7.0:
  minor
  [CS] Fix more nullable types
  [Testing] Update nullable types
2024-04-15 08:07:47 +02:00
Oskar Stark
d0f8f2bb8d Merge branch '6.4' into 7.0
* 6.4:
  minor
  [CS] Fix more nullable types
  [Testing] Update nullable types
  Reword
  Refactor Request object documentation and redefine method logic
2024-04-15 08:07:45 +02:00
Oskar Stark
8d91db9bc5 Merge branch '5.4' into 6.4
* 5.4:
  minor
  [CS] Fix more nullable types
  [Testing] Update nullable types
2024-04-15 08:07:40 +02:00
Simon André
d896411792 [CS] Fix more nullable types
Follows #19786
2024-04-13 16:53:04 +02:00
Javier Eguiluz
f9fe45072d Merge branch '7.0' into 7.1
* 7.0:
  Replace Annotation\Route with Attribute\Route
2024-03-04 08:28:45 +01:00
Javier Eguiluz
3b3ff02236 Merge branch '6.4' into 7.0
* 6.4:
  Replace Annotation\Route with Attribute\Route
2024-03-04 08:28:42 +01:00
Simon André
32460957ae Replace Annotation\Route with Attribute\Route
Inspired by https://github.com/symfony/symfony-docs/pull/19619 :)
2024-03-02 11:06:30 +01:00
Antoine Lamirault
07c2d48c50 Minor: remove duplicated lines 2024-02-09 19:07:54 +01:00
Javier Eguiluz
78f039d192 Merge branch '7.0' into 7.1
* 7.0:
  Fix broken class links
2024-02-07 09:12:58 +01:00