PhpFastCacheModule::publish()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
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
}