Skip to content

Commit

Permalink
Merge pull request #16 from rezaf-dev/master
Browse files Browse the repository at this point in the history
CookieTokenStorage - change send to sendHeaders
  • Loading branch information
vatri authored Feb 17, 2022
2 parents 3e6d61c + f652659 commit 51a8f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/CookieTokenStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function setToken(array $token)
$cookie = new Cookie($this->access_token_key, $token, 0, '/');
$response = new Response();
$response->headers->setCookie($cookie);
$response->send();
$response->sendHeaders();
}

public function getToken() : ?array
Expand All @@ -44,4 +44,4 @@ public function getToken() : ?array

return $token != null ? unserialize($token) : null;
}
}
}

0 comments on commit 51a8f19

Please sign in to comment.