You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Passing null to `*Command::setApplication()`, `*FormatterStyle::setForeground/setBackground()`, `Helper::setHelpSet()`, `Input*::setDefault()` and `Question::setAutocompleterCallback/setValidator()` must be done explicitly
18
45
* Remove `StringInput::REGEX_STRING`
19
46
* Add method `__toString()` to `InputInterface`
@@ -45,6 +72,11 @@ DoctrineBridge
45
72
* DoctrineBridge now requires `doctrine/event-manager:^2`
46
73
* Add parameter `$isSameDatabase` to `DoctrineTokenProvider::configureSchema()`
47
74
75
+
ExpressionLanguage
76
+
------------------
77
+
78
+
* The `in` and `not in` operators now use strict comparison
79
+
48
80
Filesystem
49
81
----------
50
82
@@ -68,21 +100,38 @@ HttpFoundation
68
100
* Remove `Request::getContentType()`, use `Request::getContentTypeFormat()` instead
69
101
* Throw an `InvalidArgumentException` when calling `Request::create()` with a malformed URI
70
102
103
+
HttpClient
104
+
----------
105
+
106
+
* Remove implementing `Http\Message\RequestFactory` from `HttplugClient`
107
+
71
108
HttpKernel
72
109
----------
73
110
74
111
* Add argument `$reflector` to `ArgumentResolverInterface::getArguments()` and `ArgumentMetadataFactoryInterface::createArgumentMetadata()`
112
+
* Remove `ArgumentValueResolverInterface`, use `ValueResolverInterface` instead
113
+
* Remove `StreamedResponseListener`
114
+
* Remove `AbstractSurrogate::$phpEscapeMap`
115
+
* Remove `HttpKernelInterface::MASTER_REQUEST`
116
+
* Remove `terminate_on_cache_hit` option from `HttpCache`
75
117
76
118
Lock
77
119
----
78
120
79
121
* Add parameter `$isSameDatabase` to `DoctrineDbalStore::configureSchema()`
122
+
* Remove the `gcProbablity` (notice the typo) option, use `gcProbability` instead
80
123
81
124
Messenger
82
125
---------
83
126
84
127
* Add parameter `$isSameDatabase` to `DoctrineTransport::configureSchema()`
85
128
129
+
Mime
130
+
----
131
+
132
+
* Remove `Email::attachPart()` method, use `Email::addPart()` instead
133
+
* Parameter `$body` is now required (at least null) in `Message::setBody()`
134
+
86
135
PropertyAccess
87
136
--------------
88
137
@@ -107,17 +156,83 @@ Security
107
156
SecurityBundle
108
157
--------------
109
158
110
-
* Enabling SecurityBundle and not configuring it is not allowed
159
+
* Enabling SecurityBundle and not configuring it is not allowed, either remove the bundle or configure at least one firewall
111
160
112
161
Serializer
113
162
----------
114
163
115
164
* Add method `getSupportedTypes()` to `DenormalizerInterface` and `NormalizerInterface`
116
165
* Remove denormalization support for `AbstractUid` in `UidNormalizer`, use one of `AbstractUid` child class instead
117
166
* Denormalizing to an abstract class in `UidNormalizer` now throws an `\Error`
118
-
* Remove `ContextAwareDenormalizerInterface`, use `DenormalizerInterface` instead
119
-
* Remove `ContextAwareNormalizerInterface`, use `NormalizerInterface` instead
167
+
* Remove `ContextAwareDenormalizerInterface` and `ContextAwareNormalizerInterface`, use `DenormalizerInterface` and `NormalizerInterface` instead
168
+
169
+
*Before*
170
+
```php
171
+
use Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface;
172
+
173
+
class TopicNormalizer implements ContextAwareNormalizerInterface
174
+
{
175
+
public function normalize($topic, string $format = null, array $context = [])
176
+
{
177
+
}
178
+
}
179
+
```
180
+
181
+
*After*
182
+
```php
183
+
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
184
+
185
+
class TopicNormalizer implements NormalizerInterface
186
+
{
187
+
public function normalize($topic, string $format = null, array $context = [])
188
+
{
189
+
}
190
+
}
191
+
```
120
192
* Remove `CacheableSupportsMethodInterface`, use `NormalizerInterface` and `DenormalizerInterface` instead
193
+
194
+
*Before*
195
+
```php
196
+
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
197
+
use Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface;
198
+
199
+
class TopicNormalizer implements NormalizerInterface, CacheableSupportsMethodInterface
200
+
{
201
+
public function supportsNormalization($data, string $format = null, array $context = []): bool
202
+
{
203
+
return $data instanceof Topic;
204
+
}
205
+
206
+
public function hasCacheableSupportsMethod(): bool
207
+
{
208
+
return true;
209
+
}
210
+
211
+
// ...
212
+
}
213
+
```
214
+
215
+
*After*
216
+
```php
217
+
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
218
+
219
+
class TopicNormalizer implements NormalizerInterface
220
+
{
221
+
public function supportsNormalization($data, string $format = null, array $context = []): bool
222
+
{
223
+
return $data instanceof Topic;
224
+
}
225
+
226
+
public function getSupportedTypes(?string $format): array
227
+
{
228
+
return [
229
+
Topic::class => true,
230
+
];
231
+
}
232
+
233
+
// ...
234
+
}
235
+
```
121
236
* First argument of `AttributeMetadata::setSerializedName()` is now required
122
237
* Add argument `$context` to `NormalizerInterface::supportsNormalization()` and `DenormalizerInterface::supportsDenormalization()`
123
238
@@ -127,6 +242,9 @@ Validator
127
242
* Add methods `getConstraint()`, `getCause()` and `__toString()` to `ConstraintViolationInterface`
128
243
* Add method `__toString()` to `ConstraintViolationListInterface`
129
244
* Add method `disableTranslation()` to `ConstraintViolationBuilderInterface`
245
+
* Remove static property `$errorNames` from all constraints, use const `ERROR_NAMES` instead
246
+
* Remove `VALIDATION_MODE_LOOSE` from `Email` constraint, use `VALIDATION_MODE_HTML5` instead
247
+
* Remove constraint `ExpressionLanguageSyntax`, use `ExpressionSyntax` instead
->booleanNode('enable_authenticator_manager')->setDeprecated('symfony/security-bundle', '6.2', 'The "%node%" option at "%path%" is deprecated.')->defaultTrue()->end()
69
68
->arrayNode('access_decision_manager')
70
69
->addDefaultsIfNotSet()
71
70
->children()
@@ -216,14 +215,6 @@ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $facto
0 commit comments