netglue / prismic-php-kit

Unofficial Prismic.io PHP SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preview compatibility for CLI environment

gsteel opened this issue · comments

Previews and experiments are broken if you try and use this lib in an app running in a cli environment because of the reliance on the $_COOKIE super global.

There needs to be a way of providing cookie values to the Api instance so that they can be inspected and therefore the correct ref be used when retrieving data