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 | public function refreshItem($filePath) |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | public function isHandled($filePath) |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function createNewItem($filePath) |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | protected function handleTrackableItem($file, $options = array()) |
||
132 | } |
||
133 |