public function apply_grip_config($config)
    {
        if (!is_array(reset($config))) {
            $config = array($config);
        }
        foreach ($config as $entry) {
            if (!array_key_exists('control_uri', $entry)) {
                continue;
            }
            $pub = new \PubControl\PubControlClient($entry['control_uri']);
            if (array_key_exists('control_iss', $entry)) {
                $pub->set_auth_jwt(array('iss' => $entry['control_iss']), $entry['key']);
            }
            $this->clients[] = $pub;
        }
    }