neo4j-php / Bolt

PHP library to provide connectivity to graph database over TCP socket with Bolt specification
https://packagist.org/packages/stefanak-michal/bolt
MIT License
73 stars 10 forks source link

v5.3 #119

Closed stefanak-michal closed 1 year ago

stefanak-michal commented 1 year ago

Clipboard01

New field in extra bolt_agent will be required. Fill dictionary with values if they are missing.

stefanak-michal commented 1 year ago

Drivers should not allow applications to change this value.

https://neo4j.com/docs/bolt/current/bolt/message/#messages-hello

So that means bolt driver will be always setting this by itself.

transistive commented 1 year ago

This is great, I'm doing something similar with user_agent in the driver.

It's up to you how to design the product version, but I'm leveraging the composer v2 functionality here so I don't forget to hardcode the new tags.

stefanak-michal commented 1 year ago

yeah, I used the same. it will look like this:

$extra['bolt_agent'] = [
            'product' => 'php-bolt/' . \Composer\InstalledVersions::getPrettyVersion('stefanak-michal/bolt'),
            'platform' => php_uname(),
            'language' => 'PHP/' . phpversion(),
            'language_details' => 'null'
        ];