feature #30963 [Serializer] Experimental for ObjectListExtractor (joelwurtz)
This PR was merged into the 4.3-dev branch.
Discussion
----------
[Serializer] Experimental for ObjectListExtractor
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #30904
| License | MIT
| Doc PR | -
Related to #30818
I want to mark this class as `@expiremental` until we have the full refactoring done of the Serializer, also this would allow change needed if some behavior was not correctly taken into care in 4.3
Mark also `final` for the default implementation as we don't want that to be extendable and user should use composition over inheritance.
Commits
-------
b0cdf45464
Set object list extractor as expiremental, and use final for default implementation
This commit is contained in:
commit
c274dffc8b
@ -15,8 +15,10 @@ use Symfony\Component\PropertyInfo\PropertyListExtractorInterface;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author David Maicher <mail@dmaicher.de>
|
* @author David Maicher <mail@dmaicher.de>
|
||||||
|
*
|
||||||
|
* @experimental in 4.3
|
||||||
*/
|
*/
|
||||||
class ObjectPropertyListExtractor implements ObjectPropertyListExtractorInterface
|
final class ObjectPropertyListExtractor implements ObjectPropertyListExtractorInterface
|
||||||
{
|
{
|
||||||
private $propertyListExtractor;
|
private $propertyListExtractor;
|
||||||
private $objectClassResolver;
|
private $objectClassResolver;
|
||||||
|
@ -13,6 +13,8 @@ namespace Symfony\Component\Serializer\Extractor;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author David Maicher <mail@dmaicher.de>
|
* @author David Maicher <mail@dmaicher.de>
|
||||||
|
*
|
||||||
|
* @experimental in 4.3
|
||||||
*/
|
*/
|
||||||
interface ObjectPropertyListExtractorInterface
|
interface ObjectPropertyListExtractorInterface
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user