We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06a9aa5 commit 8367fb3Copy full SHA for 8367fb3
app/code/Magento/Csp/Model/Deploy/Package/Processor/PostProcessor/Integrity.php
@@ -64,7 +64,7 @@ public function __construct(
64
public function process(Package $package, array $options): bool
65
{
66
$staticDir = $this->filesystem->getDirectoryRead(
67
- DirectoryList::STATIC_VIEW
+ DirectoryList::ROOT
68
);
69
70
foreach ($package->getFiles() as $file) {
@@ -73,7 +73,7 @@ public function process(Package $package, array $options): bool
73
[
74
"data" => [
75
'hash' => $this->hashGenerator->generate(
76
- $staticDir->readFile($file->getDeployedFilePath())
+ $staticDir->readFile($file->getSourcePath())
77
),
78
'path' => $file->getDeployedFilePath()
79
]
0 commit comments