Skip to content

Commit 9f9a52c

Browse files
committed
minor symfony#20708 Grouping FrameworkBundle upgrade notes (yceruto)
This PR was squashed before being merged into the 3.2 branch (closes symfony#20708). Discussion ---------- Grouping FrameworkBundle upgrade notes | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | License | MIT Commits ------- b8e7779 Grouping FrameworkBundle upgrade notes
2 parents 5e77aac + b8e7779 commit 9f9a52c

File tree

2 files changed

+71
-75
lines changed

2 files changed

+71
-75
lines changed

UPGRADE-3.2.md

Lines changed: 35 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,6 @@ BrowserKit
66

77
* Client HTTP user agent has been changed to 'Symfony BrowserKit' (was 'Symfony2 BrowserKit' before).
88

9-
FrameworkBundle
10-
---------------
11-
12-
* The `doctrine/annotations` dependency has been removed; require it via `composer
13-
require doctrine/annotations` if you are using annotations in your project
14-
* The `symfony/security-core` and `symfony/security-csrf` dependencies have
15-
been removed; require them via `composer require symfony/security-core
16-
symfony/security-csrf` if you depend on them and don't already depend on
17-
`symfony/symfony`
18-
* The `symfony/templating` dependency has been removed; require it via `composer
19-
require symfony/templating` if you depend on it and don't already depend on
20-
`symfony/symfony`
21-
* The `symfony/translation` dependency has been removed; require it via `composer
22-
require symfony/translation` if you depend on it and don't already depend on
23-
`symfony/symfony`
24-
* The `symfony/asset` dependency has been removed; require it via `composer
25-
require symfony/asset` if you depend on it and don't already depend on
26-
`symfony/symfony`
27-
* The `Resources/public/images/*` files have been removed.
28-
* The `Resources/public/css/*.css` files have been removed (they are now inlined
29-
in TwigBundle).
30-
319
Console
3210
-------
3311

@@ -72,25 +50,26 @@ Form
7250
FrameworkBundle
7351
---------------
7452

53+
* The `doctrine/annotations` dependency has been removed; require it via `composer
54+
require doctrine/annotations` if you are using annotations in your project
55+
* The `symfony/security-core` and `symfony/security-csrf` dependencies have
56+
been removed; require them via `composer require symfony/security-core
57+
symfony/security-csrf` if you depend on them and don't already depend on
58+
`symfony/symfony`
59+
* The `symfony/templating` dependency has been removed; require it via `composer
60+
require symfony/templating` if you depend on it and don't already depend on
61+
`symfony/symfony`
62+
* The `symfony/translation` dependency has been removed; require it via `composer
63+
require symfony/translation` if you depend on it and don't already depend on
64+
`symfony/symfony`
65+
* The `symfony/asset` dependency has been removed; require it via `composer
66+
require symfony/asset` if you depend on it and don't already depend on
67+
`symfony/symfony`
68+
* The `Resources/public/images/*` files have been removed.
69+
* The `Resources/public/css/*.css` files have been removed (they are now inlined
70+
in TwigBundle).
7571
* The service `serializer.mapping.cache.doctrine.apc` is deprecated. APCu should now
7672
be automatically used when available.
77-
78-
HttpKernel
79-
----------
80-
81-
* `DataCollector::varToString()` is deprecated and will be removed in Symfony
82-
4.0. Use the `cloneVar()` method instead.
83-
84-
* Surrogate name in a `Surrogate-Capability` HTTP request header has been changed to 'symfony'.
85-
86-
Before:
87-
```
88-
Surrogate-Capability: symfony2="ESI/1.0"
89-
```
90-
91-
After:
92-
```
93-
Surrogate-Capability: symfony="ESI/1.0"
9473
```
9574
9675
HttpFoundation
@@ -116,6 +95,23 @@ HttpFoundation
11695
- `isInvalid`/`isSuccessful`/`isRedirection`/`isClientError`/`isServerError`
11796
- `isOk`/`isForbidden`/`isNotFound`/`isRedirect`/`isEmpty`
11897
98+
HttpKernel
99+
----------
100+
101+
* `DataCollector::varToString()` is deprecated and will be removed in Symfony
102+
4.0. Use the `cloneVar()` method instead.
103+
104+
* Surrogate name in a `Surrogate-Capability` HTTP request header has been changed to 'symfony'.
105+
106+
Before:
107+
```
108+
Surrogate-Capability: symfony2="ESI/1.0"
109+
```
110+
111+
After:
112+
```
113+
Surrogate-Capability: symfony="ESI/1.0"
114+
119115
TwigBridge
120116
----------
121117

UPGRADE-4.0.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,42 @@ TwigBridge
182182
* The possibility to inject the Form Twig Renderer into the form extension
183183
has been removed. Inject it into the `TwigRendererEngine` instead.
184184

185+
Validator
186+
---------
187+
188+
* The `DateTimeValidator::PATTERN` constant was removed.
189+
190+
* `Tests\Constraints\AbstractConstraintValidatorTest` has been removed in
191+
favor of `Test\ConstraintValidatorTestCase`.
192+
193+
Before:
194+
195+
```php
196+
// ...
197+
use Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest;
198+
199+
class MyCustomValidatorTest extends AbstractConstraintValidatorTest
200+
{
201+
// ...
202+
}
203+
```
204+
205+
After:
206+
207+
```php
208+
// ...
209+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
210+
211+
class MyCustomValidatorTest extends ConstraintValidatorTestCase
212+
{
213+
// ...
214+
}
215+
```
216+
217+
* The default value of the strict option of the `Choice` Constraint has been
218+
changed to `true` as of 4.0. If you need the the previous behaviour ensure to
219+
set the option to `false`.
220+
185221
Yaml
186222
----
187223

@@ -273,39 +309,3 @@ Yaml
273309
the `!php/object` tag.
274310

275311
* Duplicate mapping keys lead to a `ParseException`.
276-
277-
Validator
278-
---------
279-
280-
* The `DateTimeValidator::PATTERN` constant was removed.
281-
282-
* `Tests\Constraints\AbstractConstraintValidatorTest` has been removed in
283-
favor of `Test\ConstraintValidatorTestCase`.
284-
285-
Before:
286-
287-
```php
288-
// ...
289-
use Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest;
290-
291-
class MyCustomValidatorTest extends AbstractConstraintValidatorTest
292-
{
293-
// ...
294-
}
295-
```
296-
297-
After:
298-
299-
```php
300-
// ...
301-
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
302-
303-
class MyCustomValidatorTest extends ConstraintValidatorTestCase
304-
{
305-
// ...
306-
}
307-
```
308-
309-
* The default value of the strict option of the `Choice` Constraint has been
310-
changed to `true` as of 4.0. If you need the the previous behaviour ensure to
311-
set the option to `false`.

0 commit comments

Comments
 (0)