Completed
Push — 8.7 ( b6d8c1...3ac046 )
by Markus
06:49
created

CredentialContainer::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace DMK\MKSamlAuth\Container;
4
5
use DMK\MKSamlAuth\Store\CredentialStore;
6
use LightSaml\Build\Container\CredentialContainerInterface;
7
use LightSaml\Store\Credential\CredentialStoreInterface;
8
use TYPO3\CMS\Core\SingletonInterface;
9
use TYPO3\CMS\Extbase\Object\Container\Container;
10
11
class CredentialContainer implements CredentialContainerInterface, SingletonInterface
12
{
13
    /**
14
     * @var SingletonContainer
15
     */
16
    private $container;
17
18
    public function __construct(SingletonContainer $container)
19
    {
20
        $this->container = $container;
21
    }
22
23
    public function getCredentialStore()
24
    {
25
        return $this->container->getInstance(CredentialStore::class);
26
    }
27
}
28