Passed
Push — master ( f0c8d3...7cbfe3 )
by Krisztián
05:50 queued 02:45
created

CacheEventListenerFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * All rights reserved © 2018 Legow Hosting Kft.
5
 */
6
7
namespace PhpCache\CacheEventListener;
8
9
/**
10
 * Description of CacheEventListenerFactory.
11
 *
12
 * @author kdudas
13
 */
14
class CacheEventListenerFactory
15
{
16
    public function __invoke($container)
17
    {
18
        $logger = $container->get(\PhpCache\Logger\CacheDataLogger::class);
19
20
        return new CacheEventListener($logger);
21
    }
22
}
23