Passed
Push — master ( fc8907...17cbbf )
by Alexandre
01:43
created

Server   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Alexandre
5
 * Date: 12/03/2018
6
 * Time: 21:26
7
 */
8
9
namespace OAuth2\Extensions\OpenID;
10
11
12
use OAuth2\Config;
13
use OAuth2\Extensions\OpenID\Endpoints\AuthorizationEndpoint;
14
use OAuth2\Extensions\OpenID\Roles\ResourceOwnerInterface;
15
use OAuth2\Storages\StorageManager;
16
17
class Server extends \OAuth2\Server
18
{
19
    public function __construct(Config $config, StorageManager $storageManager, ResourceOwnerInterface $resourceOwner)
20
    {
21
        parent::__construct($config, $storageManager, $resourceOwner);
22
23
        $this->authorizationEndpoint = new AuthorizationEndpoint(
24
            $this->responseTypeManager,
25
            $this->responseModeManager,
26
            $this->scopePolicyManager,
27
            $resourceOwner,
28
            $storageManager->getClientStorage());
29
    }
30
}