Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support plain php as serializer resource metadata. #38317

Closed
dotdevio opened this issue Sep 27, 2020 · 3 comments
Closed

Support plain php as serializer resource metadata. #38317

dotdevio opened this issue Sep 27, 2020 · 3 comments

Comments

@dotdevio
Copy link

dotdevio commented Sep 27, 2020

Description
api-platform/core#3738 the same way we can use plain php files for symfony serializer metadata, it rlly more easy to use php constants and class names in php files instaed of yaml or xml.

Example
config/serializer.php

<?php

return [
	App\Model\User::class => [
		'attributes' => [
			'uuid' => [
				'groups' => App\ApiConstants::READ,
			],
		],
	],
];
@carsonbot
Copy link

Thank you for this suggestion.
There has not been a lot of activity here for a while. Would you still like to see this feature?

@carsonbot
Copy link

Friendly ping? Should this still be open? I will close if I don't hear anything.

@carsonbot
Copy link

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants