1 | <?php |
||
9 | class DocumentationWarmer implements CacheWarmerInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $cache; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $documentation; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $vendor; |
||
25 | |||
26 | /** |
||
27 | * @var Finder |
||
28 | */ |
||
29 | private $finder; |
||
30 | |||
31 | /** |
||
32 | * @var Filter[] |
||
33 | */ |
||
34 | private $filters; |
||
35 | |||
36 | /** |
||
37 | * @param string $cache |
||
38 | * @param string $documentation |
||
39 | * @param string $vendor |
||
40 | * @param Finder|null $finder |
||
41 | */ |
||
42 | public function __construct($cache, $documentation, $vendor, Finder $finder = null) |
||
50 | |||
51 | /** |
||
52 | * @param Filter $filter |
||
53 | */ |
||
54 | public function addFilter(Filter $filter) |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function warmUp($cacheDir) |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function isOptional() |
||
100 | } |
||
101 |