1 | <?php |
||
12 | class AssetManager extends TrackingManager |
||
13 | { |
||
14 | /** |
||
15 | * The location of where to write files to. |
||
16 | * |
||
17 | * @var Folder |
||
18 | */ |
||
19 | protected $outputDirectory; |
||
20 | |||
21 | /** |
||
22 | * Files or patterns to exclude from copying. |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $excludes; |
||
27 | |||
28 | /** |
||
29 | * Files or patterns to ensure are copied regardless of excluded patterns. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $includes; |
||
34 | |||
35 | public function configureFinder($includes = array(), $excludes = array()) |
||
40 | |||
41 | /** |
||
42 | * Set the target directory of where files should be written to. |
||
43 | * |
||
44 | * @param Folder $directory |
||
45 | */ |
||
46 | public function setFolder($directory) |
||
50 | |||
51 | /** |
||
52 | * Copy all of the assets. |
||
53 | */ |
||
54 | public function copyFiles() |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function refreshItem($filePath) |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function shouldBeTracked($filePath) |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function createNewItem($filePath) |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | protected function handleTrackableItem($file, array $options = array()) |
||
132 | } |
||
133 |