Skip to content

Commit

Permalink
💥 add relativePath to Asset contract (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafredrickson authored Dec 11, 2023
1 parent 3ffa6ff commit fed7493
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Roots/Acorn/Assets/Contracts/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ public function exists(): bool;
*/
public function contents();

/**
* Get the relative path to the asset.
*
* @param string $base_path Base path to use for relative path.
* @return string
*/
public function relativePath(string $base_path): string;

/**
* Get data URL of asset.
*
Expand Down

0 comments on commit fed7493

Please sign in to comment.