storyblok / storyblok-php-client

Storyblok - PHP Client
https://www.storyblok.com
32 stars 37 forks source link

INT-979 Added SDK version and send as headers on each call #90

Closed joaokamun closed 1 year ago

joaokamun commented 1 year ago

Pull request type

Jira Link: INT-979

How to test this PR

Send a request and check the headers, must be present either the SB-AGENT and SB-AGENT-VERSION.

What is the new behavior?

Other information

All new releases should update the new const on Client class.

roberto-butti commented 1 year ago

I was thinking to use this:

\Composer\InstalledVersions::getPrettyVersion('storyblok/storyblok-php-client');

I need to think about side effects, but let me know what do you think

joaokamun commented 1 year ago

I was thinking to use this:

\Composer\InstalledVersions::getPrettyVersion('storyblok/storyblok-php-client');

I need to think about side effects, but let me know what do you think

The tests will broken because the package itself don't have his own installed via composer. Package "storyblok/storyblok-php-client" is not installed