public static function ClientFactory::getClass in Redis 8
Get specific class implementing the current client usage for the specific asked core subsystem.
Parameters
string $system: One of the ClientFactory::IMPL_* constant.
string $clientName: Client name, if fixed.
Return value
string Class name, if found.
Throws
\Exception If not found.
1 call to ClientFactory::getClass()
- ClientFactory::getClientInterface in src/
ClientFactory.php  - Lazy instantiates client proxy depending on the actual configuration.
 
File
- src/
ClientFactory.php, line 201  
Class
- ClientFactory
 - Common code and client singleton, for all Redis clients.
 
Namespace
Drupal\redisCode
public static function getClass($system, $clientName = NULL) {
  $className = $system . ($clientName ?: self::getClientName());
  if (!class_exists($className)) {
    throw new \Exception($className . " does not exists");
  }
  return $className;
}