diff --git a/src/Kdyby/Redis/DI/RedisExtension.php b/src/Kdyby/Redis/DI/RedisExtension.php index 57516ab..7a0bf35 100644 --- a/src/Kdyby/Redis/DI/RedisExtension.php +++ b/src/Kdyby/Redis/DI/RedisExtension.php @@ -66,7 +66,7 @@ public function loadConfiguration() $this->configuredClients = []; $builder = $this->getContainerBuilder(); - $config = self::fixClientConfig($this->getConfig($this->defaults + $this->clientDefaults)); + $config = static::fixClientConfig($this->getConfig($this->defaults + $this->clientDefaults)); $this->buildClient(NULL, $config); @@ -101,7 +101,7 @@ protected function buildClient($name, $config) } $config = Config\Helpers::merge($config, $defaultConfig); - $config = array_intersect_key(self::fixClientConfig($config), $this->clientDefaults); + $config = array_intersect_key(static::fixClientConfig($config), $this->clientDefaults); $client = $builder->addDefinition($clientName = $this->prefix(($name ? $name . '_' : '') . 'client')) ->setClass('Kdyby\Redis\RedisClient', [ @@ -214,7 +214,7 @@ protected function loadSession(array $config) 'connectionAttempts' => $config['connectionAttempts'], 'persistent' => $config['persistent'], ]); - $sessionConfig = self::fixClientConfig($sessionConfig); + $sessionConfig = static::fixClientConfig($sessionConfig); $this->buildClient('sessionHandler', ['debugger' => FALSE] + $sessionConfig);