SecurityProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 11
ccs 0
cts 3
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
1
<?php
2
3
namespace App\Security;
4
5
use App\Facades\Log;
6
use App\Security\Manager;
7
use Ronanchilvers\Container\Container;
8
use Ronanchilvers\Container\ServiceProviderInterface;
9
10
/**
11
 * Provider for security services
12
 *
13
 * @author Ronan Chilvers <[email protected]>
14
 */
15
class SecurityProvider implements ServiceProviderInterface
16
{
17
    /**
18
     * {@inheritdoc}
19
     *
20
     * @author Ronan Chilvers <[email protected]>
21
     */
22
    public function register(Container $container)
23
    {
24
        $container->share(Manager::class, function($c) {
25
            return new Manager($c->get('session'));
26
        });
27
    }
28
}
29