ExpressiveConfigProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 13 1
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