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", 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':