Skip to content

Commit 728df13

Browse files
authored
could not resist to simplify constructor
1 parent 7aa3bd5 commit 728df13

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

src/OAuth2/OpenID/Controller/UserInfoController.php

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,13 @@
1616
*/
1717
class UserInfoController extends ResourceController implements UserInfoControllerInterface
1818
{
19-
protected $tokenType;
20-
protected $tokenStorage;
2119
protected $userClaimsStorage;
22-
protected $config;
23-
protected $scopeUtil;
2420

2521
public function __construct(TokenTypeInterface $tokenType, AccessTokenInterface $tokenStorage, UserClaimsInterface $userClaimsStorage, $config = array(), ScopeInterface $scopeUtil = null)
2622
{
27-
$this->tokenType = $tokenType;
28-
$this->tokenStorage = $tokenStorage;
23+
parent::__construct($tokenType, $tokenStorage, $config, $scopeUtil);
24+
2925
$this->userClaimsStorage = $userClaimsStorage;
30-
31-
$this->config = array_merge(array(
32-
'www_realm' => 'Service',
33-
), $config);
34-
35-
if (is_null($scopeUtil)) {
36-
$scopeUtil = new Scope();
37-
}
38-
$this->scopeUtil = $scopeUtil;
3926
}
4027

4128
public function handleUserInfoRequest(RequestInterface $request, ResponseInterface $response)

0 commit comments

Comments
 (0)