$encoder =
$this->
getContainer()->
get(JsonEntityEncoder::
class);
$encoder->
encode(new Criteria(),
$this->
getContainer()->
get(ProductDefinition::
class),
$input, SerializationFixture::API_BASE_URL
);
} /**
* @return list<array{0: class-string, 1: SerializationFixture}>
*/
public static function complexStructsProvider(): array
{ return [ [MediaDefinition::
class,
new TestBasicStruct()],
[UserDefinition::
class,
new TestBasicWithToManyRelationships()],
[MediaDefinition::
class,
new TestBasicWithToOneRelationship()],
[MediaFolderDefinition::
class,
new TestCollectionWithSelfReference()],
[MediaDefinition::
class,
new TestCollectionWithToOneRelationship()],
[RuleDefinition::
class,
new TestInternalFieldsAreFiltered()],
[UserDefinition::
class,
new TestMainResourceShouldNotBeInIncluded()],
];
} /**
* @dataProvider complexStructsProvider
*/