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
Copy file name to clipboardExpand all lines: UPGRADE-7.1.md
+124-9Lines changed: 124 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,9 @@ Components
30
30
*[Form](#Form)
31
31
*[Intl](#Intl)
32
32
*[HttpClient](#HttpClient)
33
-
*[PropertyInfo](#PropertyInfo)
33
+
*[HttpKernel](#HttpKernel)
34
+
*[Security](#Security)
35
+
*[Serializer](#Serializer)
34
36
*[Translation](#Translation)
35
37
*[Workflow](#Workflow)
36
38
@@ -50,17 +52,66 @@ DependencyInjection
50
52
*[BC BREAK] When used in the `prependExtension()` method, the `ContainerConfigurator::import()` method now prepends the configuration instead of appending it
51
53
* Deprecate `#[TaggedIterator]` and `#[TaggedLocator]` attributes, use `#[AutowireIterator]` and `#[AutowireLocator]` instead
52
54
55
+
*Before*
56
+
```php
57
+
use Symfony\Component\DependencyInjection\Attribute\TaggedIterator;
58
+
use Symfony\Component\DependencyInjection\Attribute\TaggedLocator;
*[BC BREAK] Enabling `framework.rate_limiter` requires `symfony/rate-limiter` 7.1 or higher
72
124
* Mark classes `ConfigBuilderCacheWarmer`, `Router`, `SerializerCacheWarmer`, `TranslationsCacheWarmer`, `Translator` and `ValidatorCacheWarmer` as `final`
73
125
* Deprecate the `router.cache_dir` config option, the Router will always use the `kernel.build_dir` parameter
74
126
* Reset env vars when resetting the container
@@ -78,6 +130,37 @@ HttpClient
78
130
79
131
* Deprecate the `setLogger()` methods of the `NoPrivateNetworkHttpClient`, `TraceableHttpClient` and `ScopingHttpClient` classes, configure the logger of the wrapped clients directly instead
80
132
133
+
*Before*
134
+
```php
135
+
// ...
136
+
use Symfony\Component\HttpClient\HttpClient;
137
+
use Symfony\Component\HttpClient\NoPrivateNetworkHttpClient;
138
+
139
+
$publicClient = new NoPrivateNetworkHttpClient(HttpClient::create());
140
+
$publicClient->setLogger(new Logger());
141
+
```
142
+
143
+
*After*
144
+
```php
145
+
// ...
146
+
use Symfony\Component\HttpClient\HttpClient;
147
+
use Symfony\Component\HttpClient\NoPrivateNetworkHttpClient;
148
+
149
+
$client = HttpClient::create();
150
+
$client->setLogger(new Logger());
151
+
152
+
$publicClient = new NoPrivateNetworkHttpClient($client);
153
+
```
154
+
155
+
HttpKernel
156
+
----------
157
+
158
+
* The `Extension` class is marked as internal, extend the `Extension` class from the DependencyInjection component instead
* Deprecate the `setAnnotatedClassCache()` and `getAnnotatedClassesToCompile()` methods of the `Kernel` class
178
+
* Change the first and second argument of `OidcTokenHandler` to `Jose\Component\Core\AlgorithmManager` and `Jose\Component\Core\JWKSet` respectively
99
179
100
180
SecurityBundle
101
181
--------------
102
182
103
183
* Mark class `ExpressionCacheWarmer` as `final`
184
+
* Deprecate options `algorithm` and `key` of `oidc` token handler, use
185
+
`algorithms` and `keyset` instead
186
+
187
+
*Before*
188
+
```yaml
189
+
security:
190
+
firewalls:
191
+
main:
192
+
access_token:
193
+
token_handler:
194
+
oidc:
195
+
algorithm: 'ES256'
196
+
key: '{"kty":"...","k":"..."}'
197
+
# ...
198
+
```
199
+
200
+
*After*
201
+
```yaml
202
+
security:
203
+
firewalls:
204
+
main:
205
+
access_token:
206
+
token_handler:
207
+
oidc:
208
+
algorithms: ['ES256']
209
+
keyset: '{"keys":[{"kty":"...","k":"..."}]}'
210
+
# ...
211
+
```
212
+
* Deprecate the `security.access_token_handler.oidc.jwk` service, use `security.access_token_handler.oidc.jwkset` instead
213
+
214
+
Serializer
215
+
----------
216
+
217
+
* Deprecate the `withDefaultContructorArguments()` method of `AbstractNormalizerContextBuilder`, use `withDefaultContructorArguments()` instead (note the typo in the old method name)
104
218
105
219
Translation
106
220
-----------
@@ -111,12 +225,13 @@ TwigBundle
111
225
----------
112
226
113
227
* Mark class `TemplateCacheWarmer` as `final`
228
+
* Deprecate the `base_template_class` config option, this option is no-op when using Twig 3+
114
229
115
230
Validator
116
231
---------
117
232
118
233
* Deprecate not passing a value for the `requireTld` option to the `Url` constraint (the default value will become `true` in 8.0)
119
-
* Deprecate `Bic::INVALID_BANK_CODE_ERROR`
234
+
* Deprecate `Bic::INVALID_BANK_CODE_ERROR`, as ISO 9362 defines no restrictions on BIC bank code characters
trigger_deprecation('symfony/expression-language', '7.1', 'Passing "null" as the second argument of "%s()" is deprecated, pass "self::IGNORE_UNKNOWN_VARIABLES" instead as a third argument.', __METHOD__);
104
+
trigger_deprecation('symfony/expression-language', '7.1', 'Passing "null" as the second argument of "%s()" is deprecated, pass "%s\Parser::IGNORE_UNKNOWN_VARIABLES" instead as a third argument.', __METHOD__, __NAMESPACE__);
trigger_deprecation('symfony/expression-language', '7.1', 'Passing "null" as the second argument of "%s()" is deprecated, pass "self::IGNORE_UNKNOWN_VARIABLES" instead as a third argument.', __METHOD__);
115
+
trigger_deprecation('symfony/expression-language', '7.1', 'Passing "null" as the second argument of "%s()" is deprecated, pass "%s::IGNORE_UNKNOWN_VARIABLES" instead as a third argument.', __METHOD__, __CLASS__);
0 commit comments