|
1 |
| -UPGRADE FROM 6.1 to 6.2 |
2 |
| -======================= |
| 1 | +# UPGRADE FROM 6.1 to 6.2 |
3 | 2 |
|
4 |
| -Config |
5 |
| ------- |
| 3 | +## Config |
6 | 4 |
|
7 |
| - * Deprecate calling `NodeBuilder::setParent()` without any arguments |
| 5 | +- Deprecate calling `NodeBuilder::setParent()` without any arguments |
8 | 6 |
|
9 |
| -Console |
10 |
| -------- |
| 7 | +## Console |
11 | 8 |
|
12 |
| - * Deprecate calling `*Command::setApplication()`, `*FormatterStyle::setForeground/setBackground()`, `Helper::setHelpSet()`, `Input*::setDefault()`, `Question::setAutocompleterCallback/setValidator()`without any arguments |
13 |
| - * Change the signature of `OutputFormatterStyleInterface::setForeground/setBackground()` to `setForeground/setBackground(?string)` |
14 |
| - * Change the signature of `HelperInterface::setHelperSet()` to `setHelperSet(?HelperSet)` |
| 9 | +- Deprecate calling `*Command::setApplication()`, `*FormatterStyle::setForeground/setBackground()`, `Helper::setHelpSet()`, `Input*::setDefault()`, `Question::setAutocompleterCallback/setValidator()`without any arguments |
| 10 | +- Change the signature of `OutputFormatterStyleInterface::setForeground/setBackground()` to `setForeground/setBackground(?string)` |
| 11 | +- Change the signature of `HelperInterface::setHelperSet()` to `setHelperSet(?HelperSet)` |
15 | 12 |
|
16 |
| -DependencyInjection |
17 |
| -------------------- |
| 13 | +## DependencyInjection |
18 | 14 |
|
19 |
| - * Change the signature of `ContainerAwareInterface::setContainer()` to `setContainer(?ContainerInterface)` |
20 |
| - * Deprecate calling `ContainerAwareTrait::setContainer()` without arguments |
21 |
| - * Deprecate using numeric parameter names |
| 15 | +- Change the signature of `ContainerAwareInterface::setContainer()` to `setContainer(?ContainerInterface)` |
| 16 | +- Deprecate calling `ContainerAwareTrait::setContainer()` without arguments |
| 17 | +- Deprecate using numeric parameter names |
22 | 18 |
|
23 |
| -Form |
24 |
| ----- |
| 19 | +## Form |
25 | 20 |
|
26 |
| - * Deprecate calling `Button/Form::setParent()`, `ButtonBuilder/FormConfigBuilder::setDataMapper()`, `TransformationFailedException::setInvalidMessage()` without arguments |
27 |
| - * Change the signature of `FormConfigBuilderInterface::setDataMapper()` to `setDataMapper(?DataMapperInterface)` |
28 |
| - * Change the signature of `FormInterface::setParent()` to `setParent(?self)` |
| 21 | +- Deprecate calling `Button/Form::setParent()`, `ButtonBuilder/FormConfigBuilder::setDataMapper()`, `TransformationFailedException::setInvalidMessage()` without arguments |
| 22 | +- Change the signature of `FormConfigBuilderInterface::setDataMapper()` to `setDataMapper(?DataMapperInterface)` |
| 23 | +- Change the signature of `FormInterface::setParent()` to `setParent(?self)` |
29 | 24 |
|
30 |
| -FrameworkBundle |
31 |
| ---------------- |
| 25 | +## FrameworkBundle |
32 | 26 |
|
33 |
| - * Deprecate the `Symfony\Component\Serializer\Normalizer\ObjectNormalizer` and |
34 |
| - `Symfony\Component\Serializer\Normalizer\PropertyNormalizer` autowiring aliases, type-hint against |
35 |
| - `Symfony\Component\Serializer\Normalizer\NormalizerInterface` or implement `NormalizerAwareInterface` instead |
36 |
| - * Deprecate `AbstractController::renderForm()`, use `render()` instead |
| 27 | +- Deprecate the `Symfony\Component\Serializer\Normalizer\ObjectNormalizer` and |
| 28 | + `Symfony\Component\Serializer\Normalizer\PropertyNormalizer` autowiring aliases, type-hint against |
| 29 | + `Symfony\Component\Serializer\Normalizer\NormalizerInterface` or implement `NormalizerAwareInterface` instead |
| 30 | +- Deprecate `AbstractController::renderForm()`, use `render()` instead |
37 | 31 |
|
38 |
| -HttpFoundation |
39 |
| --------------- |
| 32 | +## HttpFoundation |
40 | 33 |
|
41 |
| - * Deprecate `Request::getContentType()`, use `Request::getContentTypeFormat()` instead |
42 |
| - * Deprecate calling `JsonResponse::setCallback()`, `Response::setExpires/setLastModified/setEtag()`, `MockArraySessionStorage/NativeSessionStorage::setMetadataBag()`, `NativeSessionStorage::setSaveHandler()` without arguments |
| 34 | +- Deprecate `Request::getContentType()`, use `Request::getContentTypeFormat()` instead |
| 35 | +- Deprecate calling `JsonResponse::setCallback()`, `Response::setExpires/setLastModified/setEtag()`, `MockArraySessionStorage/NativeSessionStorage::setMetadataBag()`, `NativeSessionStorage::setSaveHandler()` without arguments |
43 | 36 |
|
44 |
| -HttpKernel |
45 |
| ----------- |
| 37 | +## HttpKernel |
46 | 38 |
|
47 |
| - * Deprecate `ArgumentValueResolverInterface`, use `ValueResolverInterface` instead |
48 |
| - * Deprecate calling `ConfigDataCollector::setKernel()`, `RouterListener::setCurrentRequest()` without arguments |
| 39 | +- Deprecate `ArgumentValueResolverInterface`, use `ValueResolverInterface` instead |
| 40 | +- Deprecate calling `ConfigDataCollector::setKernel()`, `RouterListener::setCurrentRequest()` without arguments |
49 | 41 |
|
50 |
| -Ldap |
51 |
| ----- |
| 42 | +## Ldap |
52 | 43 |
|
53 |
| - * Deprecate `{username}` parameter use in favour of `{user_identifier}` |
| 44 | +- Deprecate `{username}` parameter use in favour of `{user_identifier}` |
54 | 45 |
|
55 |
| -Mailer |
56 |
| ------- |
| 46 | +## Mailer |
57 | 47 |
|
58 |
| - * Deprecate the `OhMySMTP` transport, use `MailPace` instead |
| 48 | +- Deprecate the `OhMySMTP` transport, use `MailPace` instead |
59 | 49 |
|
60 |
| -Mime |
61 |
| ----- |
| 50 | +## Mime |
62 | 51 |
|
63 |
| - * Deprecate calling `Message::setBody()` without arguments |
| 52 | +- Deprecate calling `Message::setBody()` without arguments |
64 | 53 |
|
65 |
| -PropertyAccess |
66 |
| --------------- |
| 54 | +## PropertyAccess |
67 | 55 |
|
68 |
| - * Deprecate calling `PropertyAccessorBuilder::setCacheItemPool()` without arguments |
69 |
| - * Implementing the `PropertyPathInterface` without implementing the `isNullSafe()` method is deprecated |
| 56 | +- Deprecate calling `PropertyAccessorBuilder::setCacheItemPool()` without arguments |
| 57 | +- Implementing the `PropertyPathInterface` without implementing the `isNullSafe()` method is deprecated |
70 | 58 |
|
71 |
| -Messenger |
72 |
| --------- |
| 59 | +## Messenger |
73 | 60 |
|
74 |
| -* Deprecate `MessageHandlerInterface` and `MessageSubscriberInterface`, use the `AsMessageHandler` attribute instead |
| 61 | +- Deprecate `MessageHandlerInterface` and `MessageSubscriberInterface`, use the `AsMessageHandler` attribute instead |
75 | 62 |
|
76 |
| -Security |
77 |
| --------- |
| 63 | +## Security |
78 | 64 |
|
79 |
| - * Add maximum username length enforcement of 4096 characters in `UserBadge` to |
80 |
| - prevent [session storage flooding](https://symfony.com/blog/cve-2016-4423-large-username-storage-in-session) |
81 |
| - * Deprecate the `Symfony\Component\Security\Core\Security` class and service, use `Symfony\Bundle\SecurityBundle\Security\Security` instead |
82 |
| - * Passing empty username or password parameter when using `JsonLoginAuthenticator` is not supported anymore |
83 |
| - * Add `$lifetime` parameter to `LoginLinkHandlerInterface::createLoginLink()` |
84 |
| - * Change the signature of `TokenStorageInterface::setToken()` to `setToken(?TokenInterface $token)` |
85 |
| - * Deprecate calling `TokenStorage::setToken()` or `UsageTrackingTokenStorage::setToken()` without arguments |
| 65 | +- Add maximum username length enforcement of 4096 characters in `UserBadge` to |
| 66 | + prevent [session storage flooding](https://symfony.com/blog/cve-2016-4423-large-username-storage-in-session) |
86 | 67 |
|
87 |
| -Serializer |
88 |
| ----------- |
| 68 | +## Serializer |
89 | 69 |
|
90 |
| - * Deprecate calling `AttributeMetadata::setSerializedName()`, `ClassMetadata::setClassDiscriminatorMapping()` without arguments |
91 |
| - * Change the signature of `AttributeMetadataInterface::setSerializedName()` to `setSerializedName(?string)` |
92 |
| - * Change the signature of `ClassMetadataInterface::setClassDiscriminatorMapping()` to `setClassDiscriminatorMapping(?ClassDiscriminatorMapping)` |
| 70 | +- Deprecate the `Symfony\Component\Security\Core\Security` class and service, use `Symfony\Bundle\SecurityBundle\Security\Security` instead |
| 71 | +- Passing empty username or password parameter when using `JsonLoginAuthenticator` is not supported anymore |
| 72 | +- Add `$lifetime` parameter to `LoginLinkHandlerInterface::createLoginLink()` |
| 73 | +- Change the signature of `TokenStorageInterface::setToken()` to `setToken(?TokenInterface $token)` |
| 74 | +- Deprecate calling `TokenStorage::setToken()` or `UsageTrackingTokenStorage::setToken()` without arguments |
93 | 75 |
|
94 |
| -Validator |
95 |
| ---------- |
| 76 | +## Serializer |
96 | 77 |
|
97 |
| - * Deprecate the `loose` e-mail validation mode, use `html5` instead |
| 78 | +- Deprecate calling `AttributeMetadata::setSerializedName()`, `ClassMetadata::setClassDiscriminatorMapping()` without arguments |
| 79 | +- Change the signature of `AttributeMetadataInterface::setSerializedName()` to `setSerializedName(?string)` |
| 80 | +- Change the signature of `ClassMetadataInterface::setClassDiscriminatorMapping()` to `setClassDiscriminatorMapping(?ClassDiscriminatorMapping)` |
| 81 | +- Deprecate `PartialDenormalizationException::getErrors()`, call `getNotNormalizableValueErrors()` instead |
98 | 82 |
|
99 |
| -VarDumper |
100 |
| ---------- |
| 83 | +## Validator |
101 | 84 |
|
102 |
| - * Deprecate calling `VarDumper::setHandler()` without arguments |
| 85 | +- Deprecate the `loose` e-mail validation mode, use `html5` instead |
103 | 86 |
|
104 |
| -Workflow |
105 |
| --------- |
| 87 | +## VarDumper |
106 | 88 |
|
107 |
| - * The `Registry` is marked as internal and should not be used directly. use a tagged locator instead |
108 |
| - ``` |
109 |
| - tagged_locator('workflow', 'name') |
110 |
| - ``` |
111 |
| - * The first argument of `WorkflowDumpCommand` should be a `ServiceLocator` of |
112 |
| - all workflows indexed by names |
113 |
| - * Deprecate calling `Definition::setInitialPlaces()` without arguments |
| 89 | +- Deprecate calling `VarDumper::setHandler()` without arguments |
| 90 | + |
| 91 | +## Workflow |
| 92 | + |
| 93 | +- The `Registry` is marked as internal and should not be used directly. use a tagged locator instead |
| 94 | + ``` |
| 95 | + tagged_locator('workflow', 'name') |
| 96 | + ``` |
| 97 | +- The first argument of `WorkflowDumpCommand` should be a `ServiceLocator` of |
| 98 | + all workflows indexed by names |
| 99 | +- Deprecate calling `Definition::setInitialPlaces()` without arguments |
0 commit comments