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

Server::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 3
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
}