From 0b832a6b9d4d918fd5fed206ec72e1973f9768dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Fabr=C3=A9gat?= Date: Fri, 27 Jul 2018 13:17:47 +0200 Subject: [PATCH 1/2] bug fix for CodeIncHQ/Psr7Responses v1.4.x --- src/Assets/AssetCompressedResponse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Assets/AssetCompressedResponse.php b/src/Assets/AssetCompressedResponse.php index dfff560..054045c 100644 --- a/src/Assets/AssetCompressedResponse.php +++ b/src/Assets/AssetCompressedResponse.php @@ -71,7 +71,7 @@ public function __construct(string $filePath, string $assetName, ?string $fileNa } parent::__construct( - $this->getStream($mimeType, $filePath), + $this->buildStream($mimeType, $filePath), $mimeType, null, $fileName, @@ -88,7 +88,7 @@ public function __construct(string $filePath, string $assetName, ?string $fileNa * @param string $filePath * @return StreamInterface */ - private function getStream(string $mimeType, string $filePath):StreamInterface + private function buildStream(string $mimeType, string $filePath):StreamInterface { switch ($mimeType) { case 'text/css': From d7f6f970558856e79ec0e2915a42fe2958b9a864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Fabr=C3=A9gat?= Date: Fri, 27 Jul 2018 13:17:51 +0200 Subject: [PATCH 2/2] v1.2.3 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c947692..85301cb 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "codeinc/assets-middleware", - "version": "1.2.2", + "version": "1.2.3", "description": "A PSR-15 middleware to server static assets (CSS, JS, images, etc.)", "homepage": "https://github.com/CodeIncHQ/AssetsMiddleware", "type": "library",