8000 minor #29942 [HttpFoundation] Add missing changelog/upgrade notes (ch… · symfony/symfony@a9f8ca5 · GitHub
[go: up one dir, main page]

Skip to content

Commit a9f8ca5

Browse files
committed
minor #29942 [HttpFoundation] Add missing changelog/upgrade notes (chalasr)
This PR was merged into the 4.3-dev branch. Discussion ---------- [HttpFoundation] Add missing changelog/upgrade notes | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- a44f19c [HttpFoundation] Add missing changelog/upgrade notes
2 parents db6784b + a44f19c commit a9f8ca5

File tree

5 files changed

+32
-4
lines changed

5 files changed

+32
-4
lines changed

UPGRADE-4.3.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,15 @@ FrameworkBundle
1818

1919
* Not passing the project directory to the constructor of the `AssetsInstallCommand` is deprecated. This argument will
2020
be mandatory in 5.0.
21+
22+
HttpFoundation
23+
--------------
24+
25+
* The `MimeTypeGuesserInterface` and `ExtensionGuesserInterface` interfaces have been deprecated,
26+
use `Symfony\Component\Mime\MimeTypesInterface` instead.
27+
* The `MimeType` and `MimeTypeExtensionGuesser` classes have been deprecated,
28+
use `Symfony\Component\Mime\MimeTypes` instead.
29+
* The `FileBinaryMimeTypeGuesser` class has been deprecated,
30+
use `Symfony\Component\Mime\FileBinaryMimeTypeGuesser` instead.
31+
* The `FileinfoMimeTypeGuesser` class has been deprecated,
32+
use `Symfony\Component\Mime\FileinfoMimeTypeGuesser` instead.

UPGRADE-5.0.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@ HttpFoundation
172172
* The `getSession()` method of the `Request` class throws an exception when session is null.
173173
* The default value of the "$secure" and "$samesite" arguments of Cookie's constructor
174174
changed respectively from "false" to "null" and from "null" to "lax".
175+
* The `MimeTypeGuesserInterface` and `ExtensionGuesserInterface` interfaces have been removed,
176+
use `Symfony\Component\Mime\MimeTypesInterface` instead.
177+
* The `MimeType` and `MimeTypeExtensionGuesser` classes have been removed,
178+
use `Symfony\Component\Mime\MimeTypes` instead.
179+
* The `FileBinaryMimeTypeGuesser` class has been removed,
180+
use `Symfony\Component\Mime\FileBinaryMimeTypeGuesser` instead.
181+
* The `FileinfoMimeTypeGuesser` class has been removed,
182+
use `Symfony\Component\Mime\FileinfoMimeTypeGuesser` instead.
175183

176184
HttpKernel
177185
----------

src/Symfony/Component/HttpFoundation/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
CHANGELOG
22
=========
33

4+
4.3.0
5+
-----
6+
7+
* deprecated `MimeTypeGuesserInterface` and `ExtensionGuesserInterface` in favor of `Symfony\Component\Mime\MimeTypesInterface`.
8+
* deprecated `MimeType` and `MimeTypeExtensionGuesser` in favor of `Symfony\Component\Mime\MimeTypes`.
9+
* deprecated `FileBinaryMimeTypeGuesser` in favor of `Symfony\Component\Mime\FileBinaryMimeTypeGuesser`.
10+
* deprecated `FileinfoMimeTypeGuesser` in favor of `Symfony\Component\Mime\FileinfoMimeTypeGuesser`.
11+
412
4.2.0
513
-----
614

src/Symfony/Component/HttpFoundation/File/MimeType/ExtensionGuesserInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Symfony\Component\HttpFoundation\File\MimeType;
1313

14-
use Symfony\Component\Mime\MimeTypes;
14+
use Symfony\Component\Mime\MimeTypesInterface;
1515

1616
/**
1717
* Guesses the file extension corresponding to a given mime type.
1818
*
19-
* @deprecated since Symfony 4.3, use {@link MimeTypes} instead
19+
* @deprecated since Symfony 4.3, use {@link MimeTypesInterface} instead
2020
*/
2121
interface ExtensionGuesserInterface
2222
{

src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesserInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
1515
use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
16-
use Symfony\Component\Mime\MimeTypes;
16+
use Symfony\Component\Mime\MimeTypesInterface;
1717

1818
/**
1919
* Guesses the mime type of a file.
2020
*
2121
* @author Bernhard Schussek <bschussek@gmail.com>
2222
*
23-
* @deprecated since Symfony 4.3, use {@link MimeTypes} instead
23+
* @deprecated since Symfony 4.3, use {@link MimeTypesInterface} instead
2424
*/
2525
interface MimeTypeGuesserInterface
2626
{

0 commit comments

Comments
 (0)
0