Skip to content

Commit 97f39b2

Browse files
author
Pavlo Cherniavskyi
committed
MAGETWO-33622: Junior+ Developer Workflow
- fix TMP_MATERIALIZATION_DIR constant usage
1 parent 548e0b2 commit 97f39b2

File tree

1 file changed

+2
-1
lines changed
  • lib/internal/Magento/Framework/App/View/Asset/MaterializationStrategy

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/App/View/Asset/MaterializationStrategy/Symlink.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
namespace Magento\Framework\App\View\Asset\MaterializationStrategy;
88

9+
use Magento\Framework\App\Filesystem\DirectoryList;
910
use Magento\Framework\Filesystem\Directory\WriteInterface;
1011
use Magento\Framework\View\Asset;
1112

@@ -38,7 +39,7 @@ public function publishFile(
3839
public function isSupported(Asset\LocalInterface $asset)
3940
{
4041
$sourceParts = explode('/', $asset->getSourceFile());
41-
if (in_array(Asset\Source::TMP_MATERIALIZATION_DIR, $sourceParts)) {
42+
if (in_array(DirectoryList::TMP_MATERIALIZATION_DIR, $sourceParts)) {
4243
return false;
4344
}
4445

0 commit comments

Comments
 (0)