Example #1
0
 /**
  * Find asset file by simply appending its path to the directory in context
  *
  * @param LocalInterface $asset
  * @param \Magento\Framework\View\Asset\File\Context $context
  * @return string
  */
 private function findFile(LocalInterface $asset, \Magento\Framework\View\Asset\File\Context $context)
 {
     $dir = $this->filesystem->getDirectoryRead($context->getBaseDirType());
     Simple::assertFilePathFormat($asset->getFilePath());
     return $dir->getAbsolutePath($asset->getPath());
 }