Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Commit

Permalink
Merge pull request #9 from CodeIncHQ/1.x
Browse files Browse the repository at this point in the history
v1.2.3
  • Loading branch information
Joan Fabrégat authored Jul 27, 2018
2 parents 99986bd + d7f6f97 commit 7ef13e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/Assets/AssetCompressedResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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':
Expand Down

0 comments on commit 7ef13e9

Please sign in to comment.