PhpFastCacheModule   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
A publish() 0 8 1
1
<?php
2
3
namespace Spiral;
4
5
use Spiral\Core\DirectoriesInterface;
6
use Spiral\Modules\ModuleInterface;
7
use Spiral\Modules\PublisherInterface;
8
use Spiral\Modules\RegistratorInterface;
9
use Spiral\PhpFastCache\Config;
10
11
class PhpFastCacheModule implements ModuleInterface
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function register(RegistratorInterface $registrator)
17
    {
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function publish(PublisherInterface $publisher, DirectoriesInterface $directories)
24
    {
25
        $publisher->publish(
26
            __DIR__ . '/config/cache.php',
27
            $directories->directory('config') . Config::CONFIG . '.php',
28
            PublisherInterface::FOLLOW
29
        );
30
    }
31
}