32 lines
711 B
PHP
32 lines
711 B
PHP
<?php
|
|
|
|
namespace Roots\Sage\Assets;
|
|
|
|
/**
|
|
* Interface ManifestInterface
|
|
* @package Roots\Sage
|
|
* @author QWp6t
|
|
*/
|
|
interface ManifestInterface
|
|
{
|
|
/**
|
|
* Get the cache-busted filename
|
|
*
|
|
* If the manifest does not have an entry for $asset, then return $asset
|
|
*
|
|
* @param string $asset The original name of the file before cache-busting
|
|
* @return string
|
|
*/
|
|
public function get($asset);
|
|
|
|
/**
|
|
* Get the cache-busted URI
|
|
*
|
|
* If the manifest does not have an entry for $asset, then return URI for $asset
|
|
*
|
|
* @param string $asset The original name of the file before cache-busting
|
|
* @return string
|
|
*/
|
|
public function getUri($asset);
|
|
}
|