createSymlink($sourcePath, $destinationPath, $targetDir); } /** * Whether the strategy can be applied * * @param Asset\LocalInterface $asset * @return bool */ public function isSupported(Asset\LocalInterface $asset) { $sourceParts = explode('/', $asset->getSourceFile()); if (in_array(DirectoryList::TMP_MATERIALIZATION_DIR, $sourceParts)) { return false; } return true; } }