public function getConfig() : array
    {
        $redis = $this->getDI()->getRedis();

        //get if from redis first
        if (!empty($redisConfig = $redis->hGetAll($this->getNotificationKey()))) {
            return $redisConfig;
        }

        $config = [];
        $userConfiguration = $this->getConfigs(['hydration' => \Phalcon\Mvc\Model\Resultset::HYDRATE_ARRAYS]);

        foreach ($userConfiguration as $value) {
            $config[$value['name']] = $value['value'];
        }

        return $config;
    }
public function getConfig() : array
    {
        $redis = $this->getDI()->getRedis();

        //get if from redis first
        if (!empty($redisConfig = $redis->hGetAll($this->getNotificationKey()))) {
            return $redisConfig;
        }

        $config = [];
        $userConfiguration = $this->getConfigs(['hydration' => \Phalcon\Mvc\Model\Resultset::HYDRATE_ARRAYS]);

        foreach ($userConfiguration as $value) {
            $config[$value['name']] = $value['value'];
        }

        return $config;
    }
public function getConfig ( ) : array { $ redis = $ this -> getDI ( ) -> getRedis ( ) ; //get if from redis first if ( ! empty ( $ redisConfig = $ redis -> hGetAll ( $ this -> getNotificationKey ( ) ) ) ) { return $ redisConfig ; } $ config = [ ] ; $ userConfiguration = $ this -> getConfigs ( [ 'hydration' => \ Phalcon \ Mvc \ Model \ Resultset :: HYDRATE_ARRAYS ] ) ; foreach ( $ userConfiguration as $ value ) { $ config [ $ value [ 'name' ] ] = $ value [ 'value' ] ; } return $ config ; }
Give the user a order array with the user configuration
Give the user a order array with the user configuration