remove access token repository from response types

This commit is contained in:
Julián Gutiérrez
2016-03-28 12:10:51 +02:00
parent 9533595394
commit e513b42117
4 changed files with 18 additions and 34 deletions

View File

@@ -145,7 +145,7 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
),
]);
$htmlResponse = new HtmlResponse($this->accessTokenRepository);
$htmlResponse = new HtmlResponse();
$htmlResponse->setStatusCode(403);
$htmlResponse->setHtml($html);
@@ -163,7 +163,7 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
),
]);
$htmlResponse = new HtmlResponse($this->accessTokenRepository);
$htmlResponse = new HtmlResponse();
$htmlResponse->setStatusCode(200);
$htmlResponse->setHtml($html);
$htmlResponse->setHeader('set-cookie', sprintf(
@@ -215,7 +215,7 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
)
);
$response = new RedirectResponse($this->accessTokenRepository);
$response = new RedirectResponse();
$response->setRedirectUri(
$this->makeRedirectUri(
$redirectUri,