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

Allow specifying properties to avoid serializing before actually serializing. #10

Open
nilportugues opened this issue Jan 20, 2016 · 1 comment
Assignees
Milestone

Comments

@nilportugues
Copy link
Owner

Introduction of this feature will mean a big performance boost as it will deal with less information. Considering the process is already fast, it's good news.

This would mean passing an hash map, having as key a FQN class as string identifier and an array holding the names of the properties to be ignored.

@nilportugues nilportugues self-assigned this Jan 20, 2016
@nilportugues nilportugues added this to the 2.0 milestone Jan 20, 2016
@nilportugues
Copy link
Owner Author

nilportugues commented Apr 29, 2016

API changes:

Concerning the hash Map, a proper object containing the logic should be passed, instead of an array.

$map = new SerializerMap();
$map->add("FQCN", ["property1", "property2"]);

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

1 participant