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

Added dynamic hrefs through property paths. This fixes #53 #57

Merged
merged 2 commits into from
May 30, 2013

Conversation

baldurrensch
Copy link
Contributor

No description provided.

@lsmith77
Copy link
Contributor

that was fast :)

@baldurrensch
Copy link
Contributor Author

That's how we roll. :)

$propertyPath = new PropertyPath(trim($href, "."));
$href = $this->propertyAccessor->getValue($object, $propertyPath);
} catch (NoSuchPropertyException $e) {
// Don't do anything in this case. There is unfortunately no way to check the
Copy link
Contributor

Choose a reason for hiding this comment

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

The ParametersFactory currently only support values starting by . or [. https://github.com/TheFootballSocialClub/FSCHateoasBundle/blob/master/Factory/ParametersFactory.php#L28

adrienbrault added a commit that referenced this pull request May 30, 2013
Added dynamic hrefs through property paths. This fixes #53
@adrienbrault adrienbrault merged commit c51c447 into TheFootballSocialClub:master May 30, 2013
@adrienbrault
Copy link
Contributor

thanks!

@baldurrensch baldurrensch deleted the href_property branch May 30, 2013 20:21
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.

3 participants