VersionStrategy
class VersionStrategy implements VersionStrategyInterface
class VersionStrategy
Properties
private string | $manifestPath | ||
private string | $format | ||
private string[] | $hashes |
Methods
void
__construct(string $manifestPath, string $format = null)
No description
string
getVersion(string $path)
Returns the md5 hash of the asset as version
string
applyVersion(string $path)
Applies the version strategy on the given path
loadManifest()
Loads the manifest.json file
Details
at line 38
void
__construct(string $manifestPath, string $format = null)
at line 49
string
getVersion(string $path)
Returns the md5 hash of the asset as version
at line 63
string
applyVersion(string $path)
Applies the version strategy on the given path
at line 80
private
loadManifest()
Loads the manifest.json file
return mixed