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