18 class Checksum implements \Magento\Framework\View\Asset\MergeStrategyInterface
51 private function getAssetSource()
53 if (!$this->assetSource) {
56 return $this->assetSource;
62 public function merge(array $assetsToMerge, \
Magento\Framework\View\
Asset\LocalInterface $resultAsset)
67 foreach ($assetsToMerge as $asset) {
68 $sourceFile = $this->getAssetSource()->findSource($asset);
72 if (
null === $mTime) {
76 $dat = $resultAsset->getPath() .
'.dat';
78 if (!$targetDir->isExist($dat) || strcmp($mTime, $targetDir->readFile($dat)) !== 0) {
79 $this->strategy->merge($assetsToMerge, $resultAsset);
80 $targetDir->writeFile($dat, $mTime);
merge(array $assetsToMerge, LocalInterface $resultAsset)
__construct(\Magento\Framework\View\Asset\MergeStrategyInterface $strategy, \Magento\Framework\Filesystem $filesystem)