Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function __construct($cacheDirectory, $debug) |
||
22 | { |
||
23 | $adbackCacheDir = $cacheDirectory . '/adback'; |
||
24 | $file = $adbackCacheDir . '/apiCache.php'; |
||
25 | $fs = new FileSystem(); |
||
26 | if (!$fs->exists($file)) { |
||
27 | $fs->mkdir($adbackCacheDir); |
||
28 | $fs->touch($file); |
||
29 | } |
||
30 | $this->cache = new ConfigCache($file, $debug); |
||
31 | } |
||
32 | |||
79 |