Custom Persistence Handler Class for Zoho CRM PHP SDK

Custom Persistence Handler Class for Zoho CRM PHP SDK

I'm working on integrating PHP SDK for Zoho CRM and building custom persistence_handler_class outside vendor dir.

I had to insert:

else{
     require_once  realpath(self::$configProperties[ZohoOAuthConstants::PERSISTENCE_HANDLER_CLASS]);
     $str=basename(self::$configProperties[ZohoOAuthConstants::PERSISTENCE_HANDLER_CLASS],".php");
     $str = "My\Namespace\Dir\\" . $str; <<< ----- THIS CODE ------------------------
     return new $str();
}

inside "vendor\zohocrm\php-sdk\src\oauth\ZohoOAuth.php" to make it work, please look into this issue, as putting code inside vendor dir is a bad practice. Or let me know if I have done something wrong. 

PHP SDK v: 2.0.4