File: UPGRADE-6.1.md

package info (click to toggle)
symfony 6.4.21%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 121,996 kB
  • sloc: php: 1,438,595; xml: 6,582; sh: 605; javascript: 597; makefile: 188; pascal: 71
file content (54 lines) | stat: -rw-r--r-- 1,978 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
UPGRADE FROM 6.0 to 6.1
=======================

All components
--------------

 * Deprecate requiring the "symfony/symfony" package; replace it with standalone components instead
 * Public and protected properties are now considered final;
   instead of overriding a property, consider setting its value in the constructor

Console
-------

 * Deprecate `Command::$defaultName` and `Command::$defaultDescription`, use the `AsCommand` attribute instead
 * Add argument `$suggestedValues` to `Command::addArgument` and `Command::addOption`
 * Add argument `$suggestedValues` to `InputArgument` and `InputOption` constructors

DependencyInjection
-------------------

 * Deprecate `ReferenceSetArgumentTrait`

FrameworkBundle
---------------

 * Deprecate the `reset_on_message` config option. It can be set to `true` only and does nothing now.
   To prevent services resetting after each message the "--no-reset" option in "messenger:consume" command can be set
 * Deprecate not setting the `http_method_override` config option. The default value will change to `false` in 7.0.

HttpKernel
----------

 * Deprecate StreamedResponseListener, it's not needed anymore

Routing
-------

 * Add argument `$routeParameters` to `UrlMatcher::handleRouteRequirements()`

Serializer
----------

 * Deprecate `ContextAwareNormalizerInterface`, use `NormalizerInterface` instead
 * Deprecate `ContextAwareDenormalizerInterface`, use `DenormalizerInterface` instead
 * Deprecate supporting denormalization for `AbstractUid` in `UidNormalizer`, use one of `AbstractUid` child class instead
 * Deprecate denormalizing to an abstract class in `UidNormalizer`

Validator
---------

 * Deprecate `Constraint::$errorNames`, use `Constraint::ERROR_NAMES` instead
 * Deprecate constraint `ExpressionLanguageSyntax`, use `ExpressionSyntax` instead
 * Implementing the `ConstraintViolationInterface` or `ConstraintViolationListInterface`
   without implementing the `__toString()` method is deprecated