mirror of
https://github.com/predis/predis.git
synced 2026-09-11 10:57:00 +00:00
Remove useless backslash in the FQN of server profiles.
This commit is contained in:
@@ -72,12 +72,12 @@ abstract class ServerProfile implements IServerProfile, IProcessingSupport
|
||||
private static function getDefaultProfiles()
|
||||
{
|
||||
return array(
|
||||
'1.2' => '\Predis\Profiles\ServerVersion12',
|
||||
'2.0' => '\Predis\Profiles\ServerVersion20',
|
||||
'2.2' => '\Predis\Profiles\ServerVersion22',
|
||||
'2.4' => '\Predis\Profiles\ServerVersion24',
|
||||
'default' => '\Predis\Profiles\ServerVersion24',
|
||||
'dev' => '\Predis\Profiles\ServerVersionNext',
|
||||
'1.2' => 'Predis\Profiles\ServerVersion12',
|
||||
'2.0' => 'Predis\Profiles\ServerVersion20',
|
||||
'2.2' => 'Predis\Profiles\ServerVersion22',
|
||||
'2.4' => 'Predis\Profiles\ServerVersion24',
|
||||
'default' => 'Predis\Profiles\ServerVersion24',
|
||||
'dev' => 'Predis\Profiles\ServerVersionNext',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ abstract class ServerProfile implements IServerProfile, IProcessingSupport
|
||||
|
||||
$profileReflection = new \ReflectionClass($profileClass);
|
||||
|
||||
if (!$profileReflection->isSubclassOf('\Predis\Profiles\IServerProfile')) {
|
||||
if (!$profileReflection->isSubclassOf('Predis\Profiles\IServerProfile')) {
|
||||
throw new ClientException(
|
||||
"Cannot register '$profileClass' as it is not a valid profile class"
|
||||
);
|
||||
@@ -188,7 +188,7 @@ abstract class ServerProfile implements IServerProfile, IProcessingSupport
|
||||
public function defineCommand($alias, $command)
|
||||
{
|
||||
$commandReflection = new \ReflectionClass($command);
|
||||
if (!$commandReflection->isSubclassOf('\Predis\Commands\ICommand')) {
|
||||
if (!$commandReflection->isSubclassOf('Predis\Commands\ICommand')) {
|
||||
throw new ClientException("Cannot register '$command' as it is not a valid Redis command");
|
||||
}
|
||||
$this->commands[strtolower($alias)] = $command;
|
||||
|
||||
Reference in New Issue
Block a user