ExpressiveConfigProvider::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 13
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Auth\Infrastructure\Framework;
6
7
use Auth\Container\ReallySimpleJWTCreateTokenFactory;
8
use Auth\Container\ReallySimpleJWTValidateTokenFactory;
9
use Auth\Service\CreateToken;
10
use Auth\Service\ValidateToken;
11
12
class ExpressiveConfigProvider
13
{
14
    public function __invoke(): array
15
    {
16
        return [
17
            'dependencies' => [
18
                'factories' => [
19
                    CreateToken::class => ReallySimpleJWTCreateTokenFactory::class,
20
                    ValidateToken::class => ReallySimpleJWTValidateTokenFactory::class,
21
                ],
22
            ],
23
            'jwt_auth' => [
24
                'secret' => '0Super@#Secret$$String!!',
25
                'expiration' => 3600,
26
                'issuer' => 'Dev Lab App'
27
            ],
28
        ];
29
    }
30
}
31