StaticVersionStrategy
in package
implements
VersionStrategyInterface
Returns the same version for all assets.
Tags
Table of Contents
Interfaces
- VersionStrategyInterface
- Asset version strategy interface.
Properties
Methods
- __construct() : mixed
- applyVersion() : string
- Applies version to the supplied path.
- getVersion() : string
- Returns the asset version for an asset.
Properties
$format
private
string
$format
$version
private
string
$version
Methods
__construct()
public
__construct(string $version[, string $format = null ]) : mixed
Parameters
- $version : string
-
Version number
- $format : string = null
-
Url format
applyVersion()
Applies version to the supplied path.
public
applyVersion(string $path) : string
Parameters
- $path : string
Return values
stringgetVersion()
Returns the asset version for an asset.
public
getVersion(string $path) : string
Parameters
- $path : string