8000 [Serializer] rename exception interface · rubenrua/symfony@c6bf1de · GitHub
[go: up one dir, main page]

Skip to content

Commit c6bf1de

Browse files
[Serializer] rename exception interface
1 parent 2b036ec commit c6bf1de

File tree

8 files changed

+30
-5
lines changed

8 files changed

+30
-5
lines changed

UPGRADE-2.7.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ Serializer
8484
$normalizer = new GetSetMethodNormalizer(null, $nameConverter);
8585
```
8686

87+
* `Symfony\Component\Serializer\Exception\ExceptionInterface` is the new name for the now
88+
deprecated `Symfony\Component\Serializer\Exception\Exception` interface.
89+
8790
PropertyAccess
8891
--------------
8992

src/Symfony/Component/Serializer/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CHANGELOG
1414
* [DEPRECATION] `GetSetMethodNormalizer::setCamelizedAttributes()` and
1515
`PropertyNormalizer::setCamelizedAttributes()` are replaced by
1616
`CamelCaseToSnakeCaseNameConverter`
17+
* [DEPRECATION] the `Exception` interface has been renamed to `ExceptionInterface`
1718

1819
2.6.0
1920
-----

src/Symfony/Component/Serializer/Exception/Exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Base exception.
1616
*
17-
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
17+
* @deprecated since version 2.7, to be removed in 3.0. Use ExceptionInterface instead.
1818
*/
1919
interface Exception
2020
{
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Serializer\Exception;
13+
14+
/**
15+
* Base exception interface.
16+
*
17+
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
18+
*/
19+
interface ExceptionInterface extends Exception
20+
{
21+
}

src/Symfony/Component/Serializer/Exception/InvalidArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
*
1717
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
1818
*/
19-
class InvalidArgumentException extends \InvalidArgumentException implements Exception
19+
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
2020
{
2121
}

src/Symfony/Component/Serializer/Exception/LogicException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
*
1717
* @author Lukas Kahwe Smith <smith@pooteeweet.org>
1818
*/
19-
class LogicException extends \LogicException implements Exception
19+
class LogicException extends \LogicException implements ExceptionInterface
2020
{
2121
}

src/Symfony/Component/Serializer/Exception/RuntimeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
*
1717
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
1818
*/
19-
class RuntimeException extends \RuntimeException implements Exception
19+
class RuntimeException extends \RuntimeException implements ExceptionInterface
2020
{
2121
}

src/Symfony/Component/Serializer/Exception/UnexpectedValueException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
*
1717
* @author Lukas Kahwe Smith <smith@pooteeweet.org>
1818
*/
19-
class UnexpectedValueException extends \UnexpectedValueException implements Exception
19+
class UnexpectedValueException extends \UnexpectedValueException implements ExceptionInterface
2020
{
2121
}

0 commit comments

Comments
 (0)
0