1 | <?php |
||
19 | class AssetManager extends TrackingManager |
||
20 | { |
||
21 | /** |
||
22 | * The location of where to write files to. |
||
23 | * |
||
24 | * @var WritableFolder |
||
25 | */ |
||
26 | protected $outputDirectory; |
||
27 | |||
28 | /** |
||
29 | * Files or patterns to exclude from copying. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $excludes; |
||
34 | |||
35 | /** |
||
36 | * Files or patterns to ensure are copied regardless of excluded patterns. |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $includes; |
||
41 | |||
42 | /** @var array<string, File> */ |
||
43 | protected $explicitAssets; |
||
44 | |||
45 | protected $eventDispatcher; |
||
46 | protected $logger; |
||
47 | |||
48 | 95 | public function __construct(EventDispatcherInterface $eventDispatcher, LoggerInterface $logger) |
|
54 | |||
55 | /** |
||
56 | * @param string $permalink |
||
57 | * @param File $file |
||
58 | */ |
||
59 | public function addExplicitAsset($permalink, File $file) |
||
63 | |||
64 | /** |
||
65 | * @param string $permalink |
||
66 | * |
||
67 | * @return File|null |
||
68 | */ |
||
69 | public function getExplicitAsset($permalink) |
||
78 | |||
79 | public function configureFinder($includes = [], $excludes = []) |
||
84 | |||
85 | /** |
||
86 | * Set the target directory of where files should be written to. |
||
87 | * |
||
88 | * @param WritableFolder $directory |
||
89 | */ |
||
90 | public function setFolder($directory) |
||
94 | |||
95 | /** |
||
96 | * Copy all of the assets. |
||
97 | */ |
||
98 | public function copyFiles() |
||
124 | |||
125 | /** |
||
126 | * {@inheritdoc} |
||
127 | */ |
||
128 | public function refreshItem($filePath) |
||
134 | |||
135 | /** |
||
136 | * {@inheritdoc} |
||
137 | */ |
||
138 | public function shouldBeTracked($filePath) |
||
142 | |||
143 | /** |
||
144 | * {@inheritdoc} |
||
145 | */ |
||
146 | public function createNewItem($filePath) |
||
152 | |||
153 | /** |
||
154 | * {@inheritdoc} |
||
155 | */ |
||
156 | protected function handleTrackableItem(File $file, array $options = []) |
||
190 | } |
||
191 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..