Completed
Push — v5 ( 9c84b7...e03f3a )
by Georges
02:50
created

extendedPhpFastCache   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 11
rs 10
1
<?php
2
namespace MyCustom\Project;
3
4
use phpFastCache\Drivers\Files\Driver as FilesDriver;
5
6
/**
7
 * Class extendsPhpFastCache
8
 * @package MyCustom\Project
9
 */
10
class extendedPhpFastCache extends FilesDriver
11
{
12
    public function __construct(array $config = [])
13
    {
14
        $config[ 'path' ] = 'your/custom/path/where/files/will/be/written';
15
        parent::__construct($config);
16
        /**
17
         * That's all !! Your cache class is ready to use
18
         */
19
    }
20
}