public function _initialize()
    {
        try {
            $this->driver = new RedisDriver([
                'host'     => $this->config['host'],
                'port'     => $this->config['port'],
                'database' => $this->config['database']
            ]);
        } catch (\Exception $e) {
            throw new ModuleException(
                __CLASS__,
                $e->getMessage()
            );
        }
    }
public function _initialize()
    {
        try {
            $this->driver = new RedisDriver([
                'host'     => $this->config['host'],
                'port'     => $this->config['port'],
                'database' => $this->config['database']
            ]);
        } catch (\Exception $e) {
            throw new ModuleException(
                __CLASS__,
                $e->getMessage()
            );
        }
    }
public function _initialize ( ) { try { $ this -> driver = new RedisDriver ( [ 'host' => $ this -> config [ 'host' ] , 'port' => $ this -> config [ 'port' ] , 'database' => $ this -> config [ 'database' ] ] ) ; } catch ( \ Exception $ e ) { throw new ModuleException ( __CLASS__ , $ e -> getMessage ( ) ) ; } }
Instructions to run after configuration is loaded

@throws ModuleException
Instructions to run after configuration is loaded