Skip to content

Replace context keys by constants#1419

Merged
dunglas merged 2 commits into
api-platform:2.1from
soyuka:fix/object_to_populate
Nov 2, 2017
Merged

Replace context keys by constants#1419
dunglas merged 2 commits into
api-platform:2.1from
soyuka:fix/object_to_populate

Conversation

@soyuka

@soyuka soyuka commented Oct 12, 2017

Copy link
Copy Markdown
Member

Rebases #1407

@meyerbaptiste

Copy link
Copy Markdown
Member

You can do the same for all the other constants (ATTRIBUTES, ALLOW_EXTRA_ATTRIBUTES, GROUPS, etc.)!

@soyuka soyuka force-pushed the fix/object_to_populate branch from c31a312 to c889581 Compare October 14, 2017 09:08
@soyuka soyuka requested a review from meyerbaptiste October 14, 2017 09:09
@soyuka

soyuka commented Oct 20, 2017

Copy link
Copy Markdown
Member Author

@meyerbaptiste this is done btw

@meyerbaptiste

Copy link
Copy Markdown
Member

Huum, I think you forget one enable_max_depth (AbstractObjectNormalizer::ENABLE_MAX_DEPTH) in the EagerLoadingExtension class!

@soyuka soyuka force-pushed the fix/object_to_populate branch from c889581 to 79f4c6a Compare October 20, 2017 14:49
@meyerbaptiste

Copy link
Copy Markdown
Member

And what about the tests directory? 😅

@soyuka soyuka force-pushed the fix/object_to_populate branch from 79f4c6a to a4579d0 Compare October 20, 2017 15:27
@soyuka soyuka force-pushed the fix/object_to_populate branch from a4579d0 to 9d36468 Compare October 20, 2017 15:29
Comment thread src/Serializer/Filter/GroupFilter.php Outdated
{
return [
$this->parameterName.'[]' => [
"{$this->parameterName}[]" => [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks less clear to me

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dunno why I changed this actually. Reverted.

@sroze sroze changed the title Fix/object to populate Replace context keys by constants Oct 25, 2017
@soyuka soyuka force-pushed the fix/object_to_populate branch from 9d36468 to 7fc53b9 Compare October 25, 2017 10:06
@dunglas dunglas merged commit 497c668 into api-platform:2.1 Nov 2, 2017
@dunglas

dunglas commented Nov 2, 2017

Copy link
Copy Markdown
Member

Thanks @tuanphpvn and @soyuka!

@soyuka soyuka deleted the fix/object_to_populate branch January 29, 2018 09:38
hoangnd25 pushed a commit to hoangnd25/core that referenced this pull request Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants