Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class SessionDependencyProvider extends AbstractProvider |
||
12 | { |
||
13 | public const SESSION_HANDLER = 'session.handler'; |
||
14 | |||
15 | 1 | public function handleDependencies(DependencyProviderInterface $dependencyProvider): void |
|
16 | { |
||
17 | $dependencyProvider[self::SESSION_HANDLER] = function () { |
||
18 | 1 | return $this->getSessionHandler(); |
|
19 | }; |
||
20 | 1 | } |
|
21 | |||
22 | /** |
||
23 | * @return \SessionHandlerInterface |
||
24 | * @throws \RuntimeException |
||
25 | * @throws \InvalidArgumentException |
||
26 | */ |
||
27 | 1 | protected function getSessionHandler(): \SessionHandlerInterface |
|
30 | } |
||
31 | |||
32 | } |