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 #1 from CodeIncHQ/1.x
Browse files Browse the repository at this point in the history
1.x
  • Loading branch information
Joan Fabrégat authored May 29, 2018
2 parents 2839ea1 + 56337b2 commit f618b6e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
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.0.0",
"version": "1.0.1",
"description": "A PSR-15 middleware to server static assets (CSS, JS, images, etc.)",
"homepage": "https://github.com/CodeIncHQ/AssetsMiddleware",
"type": "library",
Expand Down
11 changes: 11 additions & 0 deletions src/AssetsMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,15 @@ public function getAssetPath(string $assetName):string
}
return $this->assetsLocalPath.DIRECTORY_SEPARATOR.$assetName;
}

/**
* Returns an assets URI path.
*
* @param string $asset
* @return string
*/
public function getAssetUriPath(string $asset):string
{
return $this->assetsUriPath.$asset;
}
}

0 comments on commit f618b6e

Please sign in to comment.