prismicio-community / php-kit

Community maintained development kit for Prismic and the PHP language
https://prismic.io
Other
109 stars 83 forks source link

Get a DocumentLink instance from any document #73

Closed gsteel closed 9 years ago

gsteel commented 10 years ago

It would be useful to be able to get a link to any document, for example building lists of links from a result set. If this is the wrong place for a method such as this perhaps making LinkResolver::asLink() public might be possible?

erwan commented 9 years ago

We have the functionality now, it's asDocumentLink.