diff --git a/src/Client/ClientImplementation.php b/src/Client/ClientImplementation.php index feaeb75b00947472676c99209b8aab814a9722f8..f948becc99b953e324c1e5e2c1268333c3e06096 100644 --- a/src/Client/ClientImplementation.php +++ b/src/Client/ClientImplementation.php @@ -18,6 +18,8 @@ class ClientImplementation implements Client, LoggerAwareInterface const DEFAULT_TIMEOUT = 10; + const LIBRARY_LOGIN_CONTEXT = 'wp-api-client'; + /** @var HttpClient */ private $client; @@ -201,7 +203,7 @@ class ClientImplementation implements Client, LoggerAwareInterface protected function getLoggerContext($additional_context = '') { $context = [ - Platform::LIBARY_LOGIN_CONTEXT, + self::LIBRARY_LOGIN_CONTEXT, self::class ]; if ($additional_context !== '') {