src/Entity/AuthCodeEntity.php
public function generateRedirectUri($state = null, $queryDelimeter = '?')
    {
        $uri = $this->getRedirectUri();
        $uri .= (strstr($this->getRedirectUri(), $queryDelimeter) === false) ? $queryDelimeter : '&';

        return $uri.http_build_query([
            'code'  =>  $this->getId(),
            'state' =>  $state,
        ]);
    }
public function generateRedirectUri($state = null, $queryDelimeter = '?')
    {
        $uri = $this->getRedirectUri();
        $uri .= (strstr($this->getRedirectUri(), $queryDelimeter) === false) ? $queryDelimeter : '&';

        return $uri.http_build_query([
            'code'  =>  $this->getId(),
            'state' =>  $state,
        ]);
    }
public function generateRedirectUri ( $ state = null , $ queryDelimeter = '?' ) { $ uri = $ this -> getRedirectUri ( ) ; $ uri .= ( strstr ( $ this -> getRedirectUri ( ) , $ queryDelimeter ) === false ) ? $ queryDelimeter : '&' ; return $ uri . http_build_query ( [ 'code' => $ this -> getId ( ) , 'state' => $ state , ] ) ; }
Generate a redirect URI

@param string $state          The state parameter if set by the client
@param string $queryDelimeter The query delimiter ('?' for auth code grant, '#' for implicit grant)

@return string
Generate a redirect URI