Skip to content

Commit

Permalink
Merge pull request #1600 from AirBair/patch-1
Browse files Browse the repository at this point in the history
Fix trying to open non-existant manifest file
  • Loading branch information
dbu authored Jul 3, 2024
2 parents 0c95437 + 9a11026 commit b8dbc57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DependencyInjection/Compiler/AssetsVersionCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ public function process(ContainerBuilder $container): void
$runtimeDefinition->setArgument(1, $version);

if (is_a($versionStrategyDefinition->getClass(), JsonManifestVersionStrategy::class, true)) {
if (!file_exists($version)) {
$this->log($container, 'The manifest file at "'.$version.'" does not yet exist');

return;
}
$jsonManifestString = file_get_contents($version);

if (!\is_string($jsonManifestString)) {
Expand Down

0 comments on commit b8dbc57

Please sign in to comment.