Doc
This commit is contained in:
parent
8556327499
commit
b2722e79dc
@ -236,8 +236,16 @@ class DoliStorage implements TokenStorageInterface
|
|||||||
*/
|
*/
|
||||||
public function clearAllTokens()
|
public function clearAllTokens()
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO Remove token using a loop on each $service
|
||||||
$this->conf->remove($this->key);
|
/*
|
||||||
|
$servicepluskeyforprovider = $service;
|
||||||
|
if (!empty($this->keyforprovider)) {
|
||||||
|
// We clean the keyforprovider after the - to be sure it is not present
|
||||||
|
$servicepluskeyforprovider = preg_replace('/\-'.preg_quote($this->keyforprovider, '/').'$/', '', $servicepluskeyforprovider);
|
||||||
|
// Now we add the keyforprovider
|
||||||
|
$servicepluskeyforprovider .= '-'.$this->keyforprovider;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// allow chaining
|
// allow chaining
|
||||||
return $this;
|
return $this;
|
||||||
@ -332,7 +340,6 @@ class DoliStorage implements TokenStorageInterface
|
|||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
// get previously saved tokens
|
// get previously saved tokens
|
||||||
//$states = $this->conf->get($this->stateKey);
|
|
||||||
|
|
||||||
if (is_array($this->states) && array_key_exists($service, $this->states)) {
|
if (is_array($this->states) && array_key_exists($service, $this->states)) {
|
||||||
unset($this->states[$service]);
|
unset($this->states[$service]);
|
||||||
@ -351,7 +358,6 @@ class DoliStorage implements TokenStorageInterface
|
|||||||
public function clearAllAuthorizationStates()
|
public function clearAllAuthorizationStates()
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
//$this->conf->remove($this->stateKey);
|
|
||||||
|
|
||||||
// allow chaining
|
// allow chaining
|
||||||
return $this;
|
return $this;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user