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 'formatLinksUsing' method to allow either formatter classname or callback function #20

Merged
merged 3 commits into from
Sep 20, 2019

Conversation

gdebrauwer
Copy link
Owner

Hateoas::formatLinksUsing(CustomFormatter::class);

Hateoas::formatLinksUsing(function (LinkCollection $links) {
    // format links to array
});

@gdebrauwer gdebrauwer merged commit 8f5ebea into master Sep 20, 2019
@gdebrauwer gdebrauwer deleted the formatlinksusing-with-classname branch September 20, 2019 16:32
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.

None yet

1 participant