Skip to content

Commit fe1676a

Browse files
authored
Merge pull request #206 from mcdruid/grav
Grav/FD1
2 parents c0a36de + 9e65714 commit fe1676a

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

gadgetchains/Grav/FD/1/chain.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace GadgetChain\Grav;
4+
5+
class FD1 extends \PHPGGC\GadgetChain\FileDelete
6+
{
7+
public static $version = '1.4.0 <= 1.7.48+';
8+
public static $vector = '__destruct';
9+
public static $author = 'mcdruid';
10+
public static $information = 'https://github.com/getgrav/grav/pull/3874';
11+
12+
public function generate(array $parameters)
13+
{
14+
return new \Grav\Framework\Cache\Adapter\FileCache($parameters['remote_path']);
15+
}
16+
}

gadgetchains/Grav/FD/1/gadgets.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace Grav\Framework\Cache\Adapter {
4+
class FileCache
5+
{
6+
private $tmp;
7+
8+
public function __construct($tmp)
9+
{
10+
$this->tmp = $tmp;
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)