You are here

public function Oauth2Client::debugInfo in Auth0 Single Sign On 8.2

If debug mode is set, sends $info to debugger \Closure.

Parameters

mixed $info Info to debug. It will be converted to string.:

1 call to Oauth2Client::debugInfo()
Oauth2Client::exchangeCode in vendor/auth0/auth0-php/src/API/Oauth2Client.php
Exchanges the code from the URI parameters for an access token, id token and user info

File

vendor/auth0/auth0-php/src/API/Oauth2Client.php, line 548

Class

Oauth2Client
This class provides access to Auth0 Platform.

Namespace

Auth0\SDK\API

Code

public function debugInfo($info) {
  if ($this->debug_mode && (is_object($this->debugger) && $this->debugger instanceof \Closure)) {
    list(, $caller) = debug_backtrace(false);
    $caller_function = $caller['function'];
    $caller_class = $caller['class'];
    $this->debugger
      ->__invoke($caller_class . '::' . $caller_function . ' > ' . $info);
  }
}