Skip to content

Commit 9dce18e

Browse files
committed
fix(serializer): deprecate SerializerAwareProviderInterface and SerializableProvider
A PR for the removal was already made: #7314.
1 parent 9e382e0 commit 9dce18e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/State/SerializerAwareProviderInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* Injects serializer in providers.
2020
*
2121
* @author Vincent Chalamon <[email protected]>
22+
*
23+
* @deprecated in 4.2, to be removed in 5.0 because it violates the dependency injection principle.
2224
*/
2325
interface SerializerAwareProviderInterface
2426
{

tests/Fixtures/TestBundle/State/SerializableProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
/**
2222
* @author Vincent Chalamon <[email protected]>
23+
*
24+
* @deprecated in 4.2, to be removed in 5.0 because it violates the dependency injection principle.
2325
*/
2426
class SerializableProvider implements ProviderInterface, SerializerAwareProviderInterface
2527
{

0 commit comments

Comments
 (0)