From 9a110266af91d1afe1718698a90466657c9ee2f6 Mon Sep 17 00:00:00 2001 From: Florian Le Goff Date: Sun, 30 Jun 2024 14:12:03 +0200 Subject: [PATCH 1/2] Fix trying to open non-existant manifest file --- DependencyInjection/Compiler/AssetsVersionCompilerPass.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DependencyInjection/Compiler/AssetsVersionCompilerPass.php b/DependencyInjection/Compiler/AssetsVersionCompilerPass.php index c783c67b..31774979 100644 --- a/DependencyInjection/Compiler/AssetsVersionCompilerPass.php +++ b/DependencyInjection/Compiler/AssetsVersionCompilerPass.php @@ -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)) { From f3b67426800a6a86840de7447bb552c61a79f4b6 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Wed, 3 Jul 2024 15:28:14 +0200 Subject: [PATCH 2/2] prepare release --- CHANGELOG.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84435fb4..1a126b3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,13 +6,17 @@ for a given releases. Unreleased, upcoming changes will be updated here periodic # 2.x +## [2.13.1](https://github.com/liip/LiipImagineBundle/tree/2.13.1) + +- Fix Json Manifest handling when manifest file does not exist yet ([AirBair](https://github.com/liip/LiipImagineBundle/pull/1600)) + ## [2.13.0](https://github.com/liip/LiipImagineBundle/tree/2.13.0) -- Support JsonManifestVersionStrategy that was added in Symfony 6. +- Support JsonManifestVersionStrategy that was added in Symfony 6 ([wouterSkepp](https://github.com/liip/LiipImagineBundle/pull/1529)). ## [2.12.3](https://github.com/liip/LiipImagineBundle/tree/2.12.3) -- Add alias for `Imagine\Image\ImagineInterface` to help autowiring. +- Add alias for `Imagine\Image\ImagineInterface` to help autowiring ([dbu](https://github.com/liip/LiipImagineBundle/pull/1583)). ## [2.12.2](https://github.com/liip/LiipImagineBundle/tree/2.12.2)